# Automating record deletion

**URL:** <https://air.tableforums.com/t/automating-record-deletion/1473>\
**Category:** Airtable Questions\
**Created:** [February 28, 2025, 5:20pm UTC](https://air.tableforums.com/t/automating-record-deletion/1473 "2025-02-28T17:20:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jjbachar1](https://avatars.discourse-cdn.com/v4/letter/j/34f0e0/32.png) [@jjbachar1](https://air.tableforums.com/u/jjbachar1)\
**Post date:** [February 28, 2025, 5:20pm UTC](https://air.tableforums.com/t/automating-record-deletion/1473/1 "2025-02-28T17:20:35Z")

</div>

Is there a way to automate the deletion of a record in a table when certain conditions are met?

---

<div class="post-metadata">

**Author:** ![ScottWorld](https://yyz1.discourse-cdn.com/flex029/user_avatar/air.tableforums.com/scottworld/32/5_2.png) [@ScottWorld](https://air.tableforums.com/u/ScottWorld)\
**Post date:** [February 28, 2025, 9:19pm UTC](https://air.tableforums.com/t/automating-record-deletion/1473/2 "2025-02-28T21:19:08Z")

</div>

Welcome to the community, @jjbachar1!

Yes, but you would need to write a script for that by using the “Run Script” automation action.

Below is an automation script you can use, but be sure to take a look at my screenshot below for how to set this up, because you’ll need to setup your input.config variables in the left margin.

Also, note that you will need to hardcode in the name of your Table in the script below.

```auto
let inputConfig = input.config();
let recordId = inputConfig.myRecord;
let table = base.getTable("Table Name Here");
await table.deleteRecordAsync(recordId);

```

Alternatively, if you’re looking for a no-code way of automating the deletion of Airtable records, you can use [Make’s automations & integrations](https://www.make.com/en/integrations/airtable?pc=scottworld). They offer the ability to delete Airtable records, along with the ability to upsert records, integrate with other apps, and much more.

Hope this helps! If you’d like to hire the [best Airtable consultant](https://www.scottworld.com/airtable) to help you with anything Airtable-related, please feel free to contact me through my website: [Airtable consultant — ScottWorld](https://www.scottworld.com/airtable)

 ![IMG_0240](https://canada1.discourse-cdn.com/flex029/uploads/tableforums/original/2X/b/bb116f15b1ba49fd1fb165229f8cca2b386a19bc.jpeg)
