Repository navigation
chore(infra): delete legacy share storage - #57548
Conversation
Delete the SyncServer Durable Object class, erasing all stored share sessions, and remove the Bucket and EnterpriseStorage R2 buckets, which held share data and have been emptied.
There was a problem hiding this comment.
Looks sound. I checked the diff and grepped the repo: nothing still refers to the Bucket / EnterpriseStorage resources, the SYNC_SERVER binding or the SyncServer class. With the binding and the class export both gone, Cloudflare can apply the deletedClasses migration. bun test in packages/function passes. I couldn't run the actual deploy without credentials.
Public API: unchanged. This is infra and worker internals only.
One thing worth confirming, not blocking: the migration is now sent on every deploy. For a brand-new personal stage, the worker never had a SyncServer class and has no v1 tag, so check that Cloudflare accepts oldTag: "v1" + deletedClasses: ["SyncServer"] there, or skip the migration when the stage has no existing tag.

Deletes the remaining legacy share storage.
SyncServerDurable Object class (migrationdeletedClasses), erasing every stored share session on each stage.BucketandEnterpriseStorageR2 buckets. Both held only share data and have already been emptied.SyncServerexport frompackages/function/src/api.ts.The share routes were removed in #56939 and #57328.