Record modes only apply to recording, not file imports. I would guess that it
did happen when you deleted the clip. Depending on how you made your selection (especially if the whole track was already selected, the automation could have been included. But if you had the Edit Filter set to Clips, and
nothing selected before you clicked on a clip, it should have left the automation alone.