made the delete file working