L Loach Docs
Ctrl K

Data, import & export

Loach distinguishes between per-chat context exports, full backups, partial wipes and full resets. Mixing them up is the most common source of confusion.

Import won’t accept my JSON file

“Import data” rejects the file you picked.

Import data expects a full Loach backup - the JSON produced by Settings → Data → Export data. The per-chat Export context Markdown is not an import source; paste it into another chat with Import context instead. The error says which check failed:

A rejected import changes nothing.

Something is missing after restoring a backup

The import succeeded, but an MCP server is off or can’t authenticate, a chat lost its working folder, or the OpenAI base URL stayed as it was.

Backups leave out anything secret or tied to one machine:

“Remove my data” didn’t remove my OpenAI key

After erasing, your OpenAI-compatible API key is still configured.

By design. Remove my data (under Settings → Data → Erase & Reset) removes chats, folders, Spaces, the Library (texts, files, links and datasets), Snippets, snippet variables, MCP servers and memories, but keeps app settings, your stored API key and the app lock. To clear everything, including the key and the app lock, use Factory reset instead.

The database is still large after deleting chats

The Database size in Settings → Data didn’t go down after you deleted or erased chats.

Expected. SQLite keeps the space it frees and reuses it for new data instead of shrinking the file, so the on-disk total doesn’t drop. The lines under it - Chats, Attachments, Spaces, Library, Other - measure what is actually stored, and those do go down. Attachments are inlined into the database, so they are usually the biggest line.