package uninstall
Uninstall a second-generation package from the target org.
Specify the package ID for a second-generation package.
To list the org’s installed packages, run “sf package installed list”.
To uninstall a first-generation package, from Setup, enter Installed Packages in the Quick Find box, then select Installed Packages.
force:package:uninstall
| 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. |
‑‑package | ‑p | Type: Value Required ID (starts with 04t) or alias of the package version to uninstall. |
‑‑target‑org | ‑o | Type: Value Required Username or alias of the target org. Not required if the target-org configuration variable is already set. |
‑‑wait | ‑w | Type: Value Default value: 0 minutesNumber of minutes to wait for uninstall status. |
Uninstall a package with specified ID from an org with username me@example.com:
Uninstall a package with the specified alias from your default org:
Uninstall a package with an alias that contains spaces from your default org: