If you have accidentally uploaded the wrong file to your assignment, navigate to the Assignment in Moodle and hit Edit Submission:
Then hit the file icon:
and then hit delete:
You will now be able to upload a new file. Please note that if you update your file past the due date your submission will be considered late.
» Moodle Helps