Automation Helpers

Airtable Automation to Delete Records

Want to delete records in bulk inside of Airtable? Use this automation to find and delete records with a simple script.

Want to delete records in bulk inside of Airtable? In the video we create a quick automation to find records (by whatever criteria makes sense to you) and then we feed those records to a Script action which handles the actual deletion of the records.

When you add the scripting action, you’ll need to pass a list of your recordIds (from the Find Records step) to your script via the Input Variables.

Now you can copy and paste the code into the script editor:

const table = base.getTable('NAME OF YOUR TABLE');
const recordsToDelete = input.config().recordIds;
table.deleteRecordsAsync(recordsToDelete);

Make sure to leave the quotes, but insert the name of the table you are using.