Hi. I recently came across a use-case where i had to delete thousands of records in Airtable.
The best way to do that is to call the DELETE endpoint for a batch of max. 10 records, and loop it.
But, the current Airtable node does not support passing multiple record IDs at a time, if i’m not mistaken.
This is the necessary API call for this operation:
curl -v -X DELETE https://api.airtable.com/v0/<base_id>/<table_name> \
-H "Authorization: Bearer YOUR_API_KEY" \
-G \
--data-urlencode 'records[]=recQSpD8h91I1d850' \
--data-urlencode 'records[]=receGaAnw7n1Ksu4T'
I also tried achieving this via the HTTP node.
But, surprisingly, there was a limitation there as well. The HTTP node does not allow Body parameters for DELETE operations. And i couldn’t make an API call with the data in the Query parameters.
Will raise another FR for this.
I finally implemented this with Axios, in a Function node.
Kindly add this feature.
Thanks.