package delete

Delete a package.

Description for package delete 

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.

Aliases for package delete 

force:package:delete

Flags 

Flag Name (Long)Flag Name (Short)Description
‑‑api‑versionN/AType: Value

Override the api version used for api requests made by this command
‑‑flags‑dirN/AType: Value

Import flag values from a directory.
‑‑jsonN/AType: Boolean

Format output as json.
‑‑no‑prompt‑nType: Boolean

Don’t prompt before deleting the package.
‑‑package‑pType: Value
Required

ID (starts with 0Ho) or alias of the package to delete.
‑‑target‑dev‑hub‑vType: Value
Required

Username or alias of the Dev Hub org. Not required if the target-dev-hub configuration variable is already set.

Examples for package delete 

Delete a package using its alias from your default Dev Hub org:

1sf package delete --package "Your Package Alias"

Delete a package using its ID from the specified Dev Hub org:

1sf package delete --package 0Ho... --target-dev-hub devhub@example.com