package delete
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.
force:package:delete
| Flag Name (Long) | Flag Name (Short) | Description |
|---|---|---|
--api-version | N/A | Type: Value Override the api version used for api requests made by this command |
--flags-dir | N/A | Type: Value Import flag values from a directory. |
--json | N/A | Type: Boolean Format output as json. |
--no-prompt | -n | Type: Boolean Don’t prompt before deleting the package. |
--package | -p | Type: Value Required ID (starts with 0Ho) or alias of the package to delete. |
--target-dev-hub | -v | Type: Value Required Username or alias of the Dev Hub org. Not required if the target-dev-hub configuration variable is already set. |
Delete a package using its alias from your default Dev Hub org:
Delete a package using its ID from the specified Dev Hub org: