@salesforce/plugin-packaging
Version:
SF plugin that support Salesforce Packaging Platform
54 lines (27 loc) • 1.48 kB
Markdown
Delete a package version.
Specify the ID or alias of the package version you want to delete. In second-generation managed packaging, only beta package versions can be deleted. Before deleting a package version, review the considerations outlined in https://developer.salesforce.com/docs/atlas.en-us.pkg2_dev.meta/pkg2_dev/sfdx_dev_dev2gp_package_deletion.htm.
- Delete a package version with the specified alias using your default Dev Hub org:
<%= config.bin %> <%= command.id %> --package "Your Package Alias"
- Delete a package version with the specified ID using the Dev Hub org with username "devhub@example.com":
<%= config.bin %> <%= command.id %> --package 04t... --target-org devhub@example.com
ID (starts with 04t) or alias of the package version to delete.
Undelete a deleted package version.
Don’t prompt before deleting the package version.
Deleted package versions can’t be recovered.
Do you want to continue? (y/n)
This will undelete the package version, which may result in unintended consequences for customers. Proceed with caution.
Do you want to continue? (y/n)
The request to delete this package version has been canceled.
Successfully deleted the package version with ID: %s
Successfully undeleted package version %s.