Help

Re: Delete Single Record with Script

2203 1
cancel
Showing results for 
Search instead for 
Did you mean: 
Jake_Lara
5 - Automation Enthusiast
5 - Automation Enthusiast

Hey everyone,
I need help with deleting a single record using script. We want employees to be able to delete a record in Airtable by selecting a checkbox in STACKER. Here’s the flow

  1. Employees selects checkbox in Stacker
  2. Airtable automation triggered based on checkbox deselection
  3. Script triggered to delete the specific row

Any help is appreciated, thanks!
Jake

3 Replies 3

The syntax for deleting a record is detailed here: Airtable Scripting. Since you know which record to delete you can leave out the query variable and instead use the trigger record’s ID. Do this by adding it as an input config variable: when editing your Run a script action in the Automation, left side of the screen.

Thanks so much @Kamille_Parks ! Forgive me, I am not familiar with scripting. This is on my list to learn. Is there another example script I can reference?

THANK YOU
J

There are probably dozens of scripts out there that delete a record, but since there is only one function to delete (a singular) record they are all going to look effectively identical.

If there is something unclear about the example I can explain it, otherwise another example is just going to be the same thing with a different variable name.