Delete a deployed Worker from your Cloudflare account.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/cloudflare/workers-sdk/llms.txt
Use this file to discover all available pages before exploring further.
Arguments
Name of the worker
Options
Name of the worker
Don’t actually delete
Delete even if doing so will break other Workers that depend on this one
Examples
Delete a Worker interactively
Delete without confirmation
Preview deletion without executing
Delete using name from config
wrangler.json file.
Behavior
Confirmation Prompt
By default,wrangler delete requires confirmation before deletion:
Dependency Check
If other Workers depend on the Worker you’re trying to delete (through Service Bindings, Durable Objects, Dispatch Namespaces, or Tail Workers), Wrangler will warn you:--force to skip the dependency check and delete anyway.
Workers Sites Cleanup
If the Worker uses Workers Sites, the associated KV namespaces will also be deleted:__<worker-name>-workers_sites_assets__<worker-name>-workers_sites_assets_preview
Safety Features
Dry Run
Test the delete command without actually removing anything:Force Delete
Bypass all confirmation prompts and dependency checks:Related Dependencies
A Worker may be used by other Workers in the following ways:- Service Bindings: Other Workers call this Worker via a service binding
- Durable Objects: Other Workers use Durable Object classes defined in this Worker
- Dispatch Namespaces: This Worker serves as an outbound worker in a Dynamic Dispatch Namespace
- Tail Workers: Other Workers send logs to this Worker as a tail consumer
- Pages Functions: A Pages project has a service binding to this Worker