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‑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.

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

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