Dry run
cf-opencode uninstallWithout --yes, uninstall only lists what it would delete:
- The Worker and its Durable Objects.
- The container app of the Worker.
- The image tags under the container app name.
Delete
cf-opencode uninstall --yesThe command deletes those resources. If a delete fails, it prints each failure. Rerun the same command. It skips what it already deleted.
Pass --token-file <path> if you use a Cloudflare API token file.
What remains
- Cloudflare has no API to delete a snapshot. Cloudflare keeps snapshot data up to 30 days after the last restore.
uninstallremoves~/.cf-opencode/install.json. It keeps the other files in~/.cf-opencode, such as the control token and the workspace passwords. Delete the folder to remove them. See Files on your machine.- The GitHub token and any provider keys were Worker secrets. They go with the Worker.
- The store bucket,
<worker>-store, stays with its files. R2 bills for them until you delete them.uninstallnames the bucket when it exists. To delete it, empty it in the dashboard (R2 Object Storage), then runnpx wrangler r2 bucket delete <worker>-store.
Delete one workspace
To remove one workspace only, use delete:
cf-opencode delete my-repodelete destroys the container. It makes the Worker forget the workspace disk and the project snapshot. The next connect for that workspace starts from the image and clones again. It also removes the local files of that workspace and its SSH host key line.
Cloudflare drops the old snapshot data after 30 days.