Set fields to empty when deleting files