
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎Dec 02, 2020 11:52 AM
Is there was a script I can use to erase all attachments in an attachment field with the click of a button or even with an automation?
Solved! Go to Solution.
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎Dec 02, 2020 01:05 PM
It is possible to have a script that will remove all attachments in an attachment field. The script could be run from a button field, the run button in Scripting app, or an automation.
If you have an automation, you don’t even need a script. Simply overwrite the attachment field with a blank value.
However, this will only remove the attachment from the record/field. It will not delete the actual file on Airtable’s servers. Airtable keeps the attachment file in order to be able to restore attachments up to the revision history duration.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎Dec 02, 2020 01:05 PM
It is possible to have a script that will remove all attachments in an attachment field. The script could be run from a button field, the run button in Scripting app, or an automation.
If you have an automation, you don’t even need a script. Simply overwrite the attachment field with a blank value.
However, this will only remove the attachment from the record/field. It will not delete the actual file on Airtable’s servers. Airtable keeps the attachment file in order to be able to restore attachments up to the revision history duration.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎Dec 03, 2020 09:19 AM
Thanks a lot for the info!!! But would happen to know the script that I can use?

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎Dec 03, 2020 09:40 AM
There are many scripts that show how to set the value of a field,
including the examples in Scripting App. To remove the attachment,
set the value of the attachment field to null
.
If you do not feel comfortable writing your own script and have budget to hire
someone to write the script, there are several script writers on these forums,
myself included.
