Added file deletion to the sending