-
Notifications
You must be signed in to change notification settings - Fork 778
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: delete site/assets namespace when a worker is deleted #2098
feat: delete site/assets namespace when a worker is deleted #2098
Conversation
🦋 Changeset detectedLatest commit: 4ab7615 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
This patch deletes any site/asset kv namespaces associated with a worker when `wrangler delete` is used. It finds the namespace associated with a worker by using the names it would have otherwise used, and deletes it. It also does the same for the preview namespace that's used with `wrangler dev`.
5e35ed0
to
4ab7615
Compare
A wrangler prerelease is available for testing. You can install this latest build in your project with: npm install --save-dev https://prerelease-registry.developers.workers.dev/runs/3355995707/npm-package-wrangler-2098 You can reference the automatically updated head of this PR with: npm install --save-dev https://prerelease-registry.developers.workers.dev/prs/2098/npm-package-wrangler-2098 Or you can use npx https://prerelease-registry.developers.workers.dev/runs/3355995707/npm-package-wrangler-2098 dev path/to/script.js Additional artifacts:npm install https://prerelease-registry.developers.workers.dev/runs/3355995707/npm-package-cloudflare-pages-shared-2098 |
Codecov Report
@@ Coverage Diff @@
## main #2098 +/- ##
==========================================
+ Coverage 73.06% 73.12% +0.05%
==========================================
Files 127 127
Lines 8595 8610 +15
Branches 2263 2264 +1
==========================================
+ Hits 6280 6296 +16
+ Misses 2315 2314 -1
|
This patch deletes any site/asset kv namespaces associated with a worker when
wrangler delete
is used. It finds the namespace associated with a worker by using the names it would have otherwise used, and deletes it. It also does the same for the preview namespace that's used withwrangler dev
.