How to undo a CSV import in Airtable
Short answer: it depends on what the import did. If it only added new records, add a Created time field, filter to the minutes of the import, and delete those records. If it merged into existing records and overwrote values, Ctrl+Z won't help. Get the old values from record revision history (a few records) or from a snapshot (many records).
First: which kind of import was it?
- Plain import (no merge): every CSV row became a new record. Nothing existing was changed. You only need to remove the new rows.
- CSV import extension with "Merge with existing records": rows that matched the merge field updated existing records, and rows that didn't match were created as new. This is the one that overwrites data.
Case 1: remove records an import added
- Add a field of type Created time. It fills in for existing records too.
- Create a new grid view and filter Created time to the window of the import (it usually runs in seconds, so a few minutes is enough).
- Check the count matches the number of CSV rows, then select all records in the view and delete them.
- Deleted by mistake? They're in the base trash for 7 days.
If teammates or forms added records during the same minutes, they'll show in the filter too. Sort by Created by or check the rows before deleting.
Case 2: put back values a merge import overwrote
- Pause automations triggered by record updates, so they don't fire again on the fix.
- Add a Last modified time field limited to the columns in the CSV, and filter to the import window. That's your list of overwritten records.
- Up to ~20 records: open each record's revision history and copy the old values back.
- More than that: restore a snapshot from before the import into a new base, then copy back only the overwritten columns for only the affected records. The full method is in revert to a previous version without losing today's edits.
Prevent it next time
- Take a manual snapshot right before any import.
- In the CSV import extension, turn on "Skip blank or invalid CSV values" so empty cells don't wipe existing data.
- Remember that merge matching is case-sensitive, rows with a blank merge value always create new records, and if several existing records share a merge value, all of them get updated.
- Test on a copy of the table with 5 rows first. More in import a CSV without overwriting existing records.