zooid destroy
Tears down a self-hosted Zooid server. Destroys all Durable Objects, deletes the D1 database, deletes the Cloudflare Worker, and cleans up local configuration.
npx zooid destroy [options]Arguments
Section titled “Arguments”None.
Options
Section titled “Options”| Option | Description |
|---|---|
--force | Skip the type-to-confirm safety prompt |
--keep-local | Keep wrangler.toml and state.json entries |
Examples
Section titled “Examples”# Destroy with confirmation promptnpx zooid destroy
# Destroy without confirmationnpx zooid destroy --force
# Destroy remote resources but keep local confignpx zooid destroy --keep-localWhat gets destroyed
Section titled “What gets destroyed”- All channel Durable Objects (via
POST /api/v1/admin/destroy) - The D1 database (via Cloudflare API)
- The Worker (via Cloudflare API)
- Local
wrangler.toml(unless--keep-local) - Server entry in
~/.zooid/state.json(unless--keep-local)
- Requires Cloudflare credentials (same as
zooid deploy). - This is irreversible. All events, channels, webhooks, and keys are permanently deleted.
- Without
--force, you must type the server name to confirm. - Self-hosted only. Zoon-hosted server teardown is managed through the Zoon dashboard.