add transaction around tmpfile creation
delete only file_delete