Hello Ivan,
As far as i can see the solution to this depends on whether the assignment was set with "students must click submit" set to yes or no.
If it is switched to Yes and the student has submitted, you can revert to draft as I suggested before (here is screengrab from 2.3.2).
Once it is reverted the student can then edit the assignment to delete the file and replace with a new one.
If the 'must submit' option is set to no, the revert option is missing from the edit menu but the student should be able to change the file just by editing their submitted assignment to delete it - this YouTube video shows the process
If there is a problem with the student editing because the submission deadline has been passed you could always change the dates to allow the file to be amended.
Hope this helps.
Regards, Gordon.