I am unable to delete workers in the dashboard or via the API. As a bit of background, I have preview workers created on pull requests via CI in projects that contain durable objects, and I need to clean them up afterwards.
When I try to delete the workers, I get the error
script still in use by a durable object namespace (Code: 10064). I get this both in the manage service screen in the dashboard, and trying to delete via the API.
Is there no way to remove a binding, thus enabling me to delete the preview workers? I’ve seen that I can delete the
[durable_objects] in my
wrangler.toml, but this would also remove the DO from my production workers that I don’t want to happen.
Also, on a related note, is there any way to create previews as service environments, now that they’re enabled, rather than separate workers?