Export your data or delete your account
Export the account data as JSON, export a site database as SQL, or delete the account.
Export the account data as JSON, export a site database as one SQL file, or delete the account.
Before you start
- Only Owners export the account data or delete the account.
- A site database export needs
restores:writeorsite_deletion:writein the site's workspace. It exists only for a site that Fleet created. Fleet never reads a linked site's database. - Every export and the deletion need a sign-in within the last 30 minutes. An API token cannot start them.
- Exports, under the user menu, lists an export for 7 days. Only the member who requested it can download it.
Steps
Export the account data
- Open Account Settings and select Export account data.
- When the Data export ready email arrives, open Exports and select Download.
Export a site database
- Open the site page and select Export database.
- Confirm. The export starts after any running job. Until it ends, the site cannot read or save content, and deploys, rollbacks and restores wait.
- Wait for the Data export ready email, or watch Exports. You can cancel the export only while it is queued.
- Select Download.
Delete the account
- Export the account data, and the database of each site you want to keep.
- In Account Settings, select Delete account and type the account label.
- Confirm. Fleet revokes every connection of the account at its provider and schedules the deletion 30 days ahead. Cloudflare and GitHub resources stay in their accounts.
Result
The account export is one JSON file of the account's own records. It holds no connection tokens or site keys.
The database export is one SQL file in the order D1 exports it. It leaves out the search index, which EmDash rebuilds on the first search, the media files and the site's encryption key. See Reveal a site's encryption key.
Import the file only into SQLite with sqlite3. D1 refuses a statement of 100,000 bytes or more. It runs a large import in parts, so a row can arrive before the row its foreign key references. EmDash's Backups guide restores in four files, and the D1 limits list the statement size.
After you confirm a deletion, the account is read-only for 30 days and accepts only Cancel deletion and Export account data. Then Fleet deletes the account's data. See Account is scheduled for deletion.
If something goes wrong
- An export that runs over 30 minutes stops with this message.
The database export did not finish within 30 minutes, so Fleet stopped it. Try again. If it repeats, contact support and quote job <id>.
- A site can be exported when it is ready to deploy, deploying, migrating, awaiting its first setup or active. In any other status, Fleet refuses.
This site's database cannot be exported in its current status. Open the site to see its next step.
- Fleet stopped the job, or a maintenance restore interrupted it.
Fleet stopped this job because it stopped responding. Retry it. For a database export, start a new export from the site page. If it repeats, contact support and quote job <id>.
A Fleet maintenance restore interrupted this job. Retry it. For a database export, start a new export from the site page.
- You tried another change while the account is scheduled for deletion.
This account is scheduled for deletion on <date>. An Owner can cancel the deletion in Account Settings.
- Cloudflare or GitHub did not confirm a revocation, so Fleet scheduled nothing. The account stays as it was. Without a status from the provider, the message says it did not confirm the revocation. Confirm the deletion again after a few minutes. If it repeats, see Contact support.
<Provider> returned error <code>, so the deletion was not scheduled. Any connection already revoked stays revoked. Try again in a few minutes. If it fails again, check the provider's status page or contact support.