proper file deleting