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

  1. Open the note that holds the app and choose the gear to open the app's settings.

  2. 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

  3. Pick the copy from just before the change you want to undo. Open Show tables to see how many rows each table had then.

Each copy says why and when it was kept, and how many rows it holds.

2. Restore it

  1. Choose Restore next to the copy.

  2. 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.

  3. 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: undo it, and choose which tables visitors can read again.

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

Related pages