Uninstall Package
sf_uninstall_packageUninstall a second-generation package from a target org to remove all metadata it delivered. Use before reinstalling a broken package or when the package is no longer needed.
Instructions
Uninstalls a second-generation package from a target org using the SF CLI. Removes all metadata delivered by the package. Use before reinstalling a broken package, or to clean up a package no longer needed.
packageId: package version ID (04t...) or alias to uninstall targetOrg: target org alias (defaults to SF_ALIAS env var) wait: minutes to wait for uninstall to complete
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | Minutes to wait for uninstall to complete | |
| packageId | Yes | Package version ID (04t...) or alias to uninstall | |
| targetOrg | No | Target org alias (defaults to SF_ALIAS env var) |