Delete a set of Airtable rows which has a particular value

I am trying to delete all previous rows of my Airtable, when the Flag column value is not “set”… the code seems to be working, but it is not getting deleted…
Can anyone kindly check what am I doing wrong, attaching my code and airtable view.