HOW CAN A STUDENT WITHDRAW A FILE BECAUSE HE UPLOAD TO THE WRONG MODULE?
Generally once a file is submitted, it cannot be removed, this if for best-practices auditing purposes. I did look through some historical threads to confirm this as well and found the following answer Deleting submissions
However, you could message your teacher and ask them to please disregard the incorrect submission and ask if they have any action you would like to take. You can either contact them directly, or you can use the Inbox function within Canvas which you can find out how to do with this guide How do I send a message to a user in a course in the Inbox as a student?.
I hope that helps! Reach out to your teacher and I am sure they will be able to let you know the best way to proceed that suits what they would prefer.
Retrieving data ...