delete file from server after upload finishes