Unlink or delete a site

Unlink removes a site from Fleet only. Delete removes a site Fleet created, with its Cloudflare resources unless you keep them.

Select Unlink on a linked site, or Delete on a site Fleet created.

Before you start

  • Unlink is for linked sites and needs sites:write. It removes the site from Fleet only. It changes no resource in your Cloudflare or GitHub account.
  • Delete is for sites Fleet created. It needs the site deletion permission, which Owners and Admins hold. A linked site offers Unlink only.
  • No job of the site is queued, running or migrating. Wait for it to end first.
  • Delete asks you to sign in again when your sign-in is older than 30 minutes. An API token cannot delete.
  • Delete never removes the GitHub repository. Delete it in GitHub yourself.
  • Before you delete, take a final export of the database. See Export your data or delete your account.

Steps

  1. Open the site.
  2. Select Unlink on a linked site, or Delete on a created site.
  3. To unlink, read the dialog and confirm.
  4. To delete, type the name of the site.
  5. Keep the checkbox Delete Cloudflare resources too selected to delete the Worker, the D1 database, the R2 bucket and the KV namespace. Clear it to keep them.
  6. Take the final database export if the dialog offers it. Save the encryption key the dialog reveals, because without it values that EmDash encrypted stay unreadable.
  7. Without an export, select Delete without export.
  8. Confirm, and sign in again if Fleet asks.
  9. Follow the job page until it ends.
Deleting a site in the Delete site dialog, with the choice to export its database first.

Result

  • After an unlink, the site is gone from Fleet. Fleet revokes the connections that belonged to that site alone, Cloudflare first and then GitHub. A connection another site still uses stays, and so do your reusable connections.
  • The site, its Worker and its hostname can be linked again later. The OAuth registration Fleet made for the site admin connection stays on the site for its administrator to remove.
  • After a delete, the site shows Deleting while Fleet removes the resources, then disappears from the lists. Fleet keeps the site's records for 30 days.

If something goes wrong

  • If Cloudflare or GitHub does not confirm, the unlink stops with a provider error and the site stays. Select Unlink again to revoke what is left.
  • If a delete cannot finish, the site shows Deletion incomplete, lists the resources that remain and offers Retry, which skips what is already deleted.
  • If the database cannot be exported in the site's status, the dialog offers Delete without export.
This site's database cannot be exported in its current status. Open the site to see its next step.
  • If the export takes too long, Fleet stops it.
The database export did not finish within 30 minutes, so Fleet stopped it. Try again. If it repeats, contact support and quote job <id>.

Related

Report a problem with this page