Ended Workers Paid plan, can't delete workers

I tried Workers Paid for a few months to experiment with Durable Objects, and it’s super cool tech but didn’t end up meeting my use case. I have a few workers leftover that have Durable Object classes still associated with them, however even though they exist I can’t delete them without deleting the objects first:

When I try to overwrite the worker with one that doesn’t include the durable object, I get this error:

PS C:\Users\kaytw\repos\workers-chat-demo> wrangler publish
✨ No build command specified, skipping build.
New version of script does not export class ChatRoom which is depended on by existing Durable Objects. Did you forget to include it? If you renamed it, try a rename-class migration. If you want to delete all the Durable Objects implemented by the class, you can use a delete-class migration [API code: 10064]

And when I try to explicitly delete the Durable Object class I get this error:

PS C:\Users\kaytw\repos\workers-chat-demo> wrangler publish --delete-class ChatRoom
✨ No build command specified, skipping build.
Error: Something went wrong with the request to Cloudflare...

Your account does not have permission to do this! While Durable Objects are in Beta, the modules format is limited to accounts which have opted-in to the Beta. You may do so
by following the instructions here: https://developers.cloudflare.com/workers/learning/using-durable-objectsworkers.api.error.not_entitled [API code: 10015]

Is there any way for me to delete these Durable Objects, or otherwise just delete these workers, while downgraded to the free workers plan? Thanks!

@MoreHelp

Hi @kaytwo,

I checked with our Workers team, can you please try again and let us know if you were able to proceed?

Same symptoms -

In the web ui:
script still in use by a durable object namespace (Code: 10064)

using cli:

PS C:\Users\kaytw\repos\workers-chat-demo> wrangler publish
✨  No build command specified, skipping build.
Error: Something went wrong with the request to Cloudflare...
New version of script does not export class ChatRoom which is depended on by existing Durable Objects. Did you forget to include it? If you renamed it, try a rename-class migration. If you want to delete all the Durable Objects implemented by the class, you can use a delete-class migration [API code: 10064]
PS C:\Users\kaytw\repos\workers-chat-demo> wrangler publish --delete-class ChatRoom
✨  No build command specified, skipping build.
Error: Something went wrong with the request to Cloudflare...
New version of script does not export class ChatRoom which is depended on by existing Durable Objects. Did you forget to include it? If you renamed it, try a rename-class migration. If you want to delete all the Durable Objects implemented by the class, you can use a delete-class migration [API code: 10064]
PS C:\Users\kaytw\repos\workers-chat-demo>

Did the team temporarily upgrade my account? The account with the broken workers is 65c72041454f974ccbd41b357c672e64.

Looks like you were using the chat demo? If you haven’t already, try removing the durable objects section from wrangler.toml and running

wrangler publish --delete-class ChatRoom --delete-class RateLimiter

1 Like

hey @kaytwo - I’ve upgraded the right account now. Could you try again, with the command Cody suggested?

2 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.