Undo a change to an app's database
Bring an app's database back to how it was before a change that removed data, check what changed, let visitors read the tables again, and undo the restore if you need to.
Goal: get back the data a change removed from an app's database, for example rows an AI agent deleted by mistake. Time: about five minutes. Plan: Studio. Before you start: the app has a database, and a change removed data in the last 30 days. See App data for when copies are kept.
1. Find the copy
Open the note that holds the app and choose the gear to open the app's settings.
Scroll to Database history. Each line is a copy of the whole database, newest first, for example:
Before Claude Code removed rows - 3 Dec 2026, 14:02 3 tables, 1,240 rows - 48 KB - Kept until 2 Jan
Pick the copy from just before the change you want to undo. Open Show tables to see how many rows each table had then.
2. Restore it
Choose Restore next to the copy.
Read the question, for example "Restore the database as it was on 3 Dec at 14:02? The current data is kept as a copy for 30 days, so you can undo this." Everything visitors added or changed since then is replaced.
Choose Restore again. It takes a few seconds; visitors may be asked to try again meanwhile.
3. Check the result and turn the tables back on
The result says the date the database is back to and until when the data you replaced is kept.
After a restore no table is readable by visitors. If visitors could read some before, the result names them: choose Let visitors read them again when you have checked the data, or turn tables on one by one under Tables visitors can read.
If a visitor operation no longer fits the restored tables, the result names it. Ask the AI builder, for example: "The operation add_score no longer works after I restored the database. Fix it for the scores table."
Open the app and check that the data is what you expected.
4. Undo the restore if you need to
Choose Undo in the result, or restore the copy "Before you restored a copy" from the list. That copy holds the database as it was just before your restore, and is kept for 30 days.
When an AI agent asks for the restore
An agent connected over MCP can list the copies (app_data_copies_list) and ask for a restore (app_data_restore), for example after you tell it "put the database back to before your last change". It never restores by itself: you get a link to a page in SeeMyNotes that shows the copy, and you tick "I understand..." and choose Restore. See Manage your apps with an AI agent.
What a restore cannot bring back
Copies older than 30 days, or a state no copy was kept for (copies are kept only before changes that remove data, and before restores).
One table on its own: a restore always replaces the whole database. To keep some of today's rows, ask the AI builder to export them first, or download the database.
Secrets, variables, visitor operations, which tables visitors can read, and the app's code: they are not part of the copy.