mirror of
https://github.com/cloudflare/cloudflare-docs.git
synced 2026-01-16 23:11:06 +00:00
Merge c78758e896 into daed515aa7
This commit is contained in:
commit
c968479763
2 changed files with 20 additions and 0 deletions
|
|
@ -74,6 +74,20 @@ New versions are not created when you make changes to [resources connected to yo
|
|||
|
||||
See examples of creating a Worker, Versions, and Deployments directly with the API, library SDKs, and Terraform in [Infrastructure as Code](/workers/platform/infrastructure-as-code/).
|
||||
|
||||
### Delete a version
|
||||
|
||||
To delete a version that is not currently deployed, use the [`wrangler versions delete`](/workers/wrangler/commands/#versions-delete) command:
|
||||
|
||||
```sh
|
||||
npx wrangler versions delete <VERSION_ID> --name <WORKER_NAME>
|
||||
```
|
||||
|
||||
You will be prompted to confirm the deletion. Use `--yes` to skip the confirmation prompt in CI environments.
|
||||
|
||||
:::note
|
||||
You cannot delete a version that is actively serving traffic. Remove the version from the active deployment first.
|
||||
:::
|
||||
|
||||
### View versions and deployments
|
||||
|
||||
#### Via Wrangler
|
||||
|
|
|
|||
|
|
@ -729,6 +729,12 @@ For example:
|
|||
|
||||
<WranglerCommand command="versions view" headingLevel={3} />
|
||||
|
||||
<WranglerCommand
|
||||
command="versions delete"
|
||||
description="Delete a specific [version](/workers/configuration/versions-and-deployments/#versions) of your Worker. A version can only be deleted if it is not actively deployed."
|
||||
headingLevel={3}
|
||||
/>
|
||||
|
||||
<WranglerCommand command="versions secret put" headingLevel={3} />
|
||||
|
||||
<WranglerCommand command="versions secret delete" headingLevel={3} />
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue