delete file after it has been sent