@salesforce/plugin-packaging
Version:
SF plugin that support Salesforce Packaging Platform
56 lines (28 loc) • 1.2 kB
Markdown
Delete a package.
Specify the ID or alias of the package you want to delete.
Delete unlocked and second-generation managed packages. Before you delete a package, first delete all associated package versions.
- Delete a package using its alias from your default Dev Hub org:
<%= config.bin %> <%= command.id %> --package "Your Package Alias"
- Delete a package using its ID from the specified Dev Hub org:
<%= config.bin %> <%= command.id %> --package 0Ho... --target-dev-hub devhub@example.com
ID (starts with 0Ho) or alias of the package to delete.
Undelete a deleted package.
Don’t prompt before deleting the package.
Deleted packages can’t be recovered.
Do you want to continue? (y/n)
This will undelete the package, which may result in unintended consequences for customers. Proceed with caution.
Do you want to continue? (y/n)
The request to delete this package was canceled
Successfully deleted the package with ID: %s
Successfully undeleted the package.