Deleted uploaded files and prevented errors