# pkg/uninstall Uninstall a package by `owner/name` id. ## Syntax
[pkg/uninstall $id ?$opts]
## Parameters - `$id` — `"owner/name"` package id - `$opts` — optional map selecting the root: - `%{ :local true }` — remove the project install (`.deft/packages`) - `%{ :global true }` — remove the user-level install (`~/.deft/packages`) Without opts the project override is removed first (it shadows a global copy), then the user-level install. This mirrors install's global-by-default, local-override layout. ## Examples
[pkg/uninstall "deft/editor"]
[pkg/uninstall "deft/editor" %{ :local true }]
CLI equivalents: ```sh deft pkg uninstall deft/editor deft pkg uninstall deft/editor --local deft pkg uninstall deft/editor --global ```` ## Returns `true`, or `%Err{}` if not found. ## See Also `pkg/install`, `pkg/list`