Deleting the sampe and tmp file