We know the API can be used to delete a range of record IDs at once (i.e. 10 rows, 50 rows). That works fine for fairly small tables, but we have some tables in excess of 10K rows where we'd like to be able to delete the rows quickly.
To add to the question, I know that AirTable allows a user (with rights) to delete all rows very quickly, by doing the following:
- Go to the AirTable page.
- Click on the checkbox in the upper left part of the column headings to mark all rows with a checkbox
- Right-click and take the option to "Delete all selected positions".
Again, even if the table has more than 10K rows, AirTable removes them very quickly (maybe a second or two).
We'd like to be able to do that programmatically. Unfortunately, we haven't yet found a way to reproduce that using the API. The best we've been able to come up with is the approaches we've found in the API documentation, which execute more slowly (and sometimes timeout)
Maybe a more general question - when someone takes a specific set of steps in the UI, is it possible to record those steps as a macro? There are other scenarios as well when someone can perform a task in the interface, where we try to figure out how to replicate that behavior through code). So we wish we could "peek under the hood" to see what AirTable is doing when someone checks the top checkbox and is able to delete thousands of rows instantly.
At one point I wondered if maybe the table was being copied without rows to a temp table, then physically removed, and renamed back, without the table ID itself being changed.
Thanks,
Kevin