How to purge all the cache for a subdomain?

For example,
I have a worker deployed in

The worker doesn’t request any origins because all the content is generated in the worker itself.
Because of bad logic, now my cache is corrupt with wrong values.

Now if I want to purge the whole cache, how to do it? I don’t think there is zone-id for a URL


  1. I tried search for cloud API in Cloudflare API docs.
  2. I tried redeploying the worker.

Nothing worked

the same question? how to purge?

Not possible, only when using your domain.