aam uninstall¶
Package Management
Synopsis¶
Description¶
Remove an installed package from the project. Undeploys artifacts from the target platform, removes the package directory from .aam/packages/, and updates the lock file.
If other installed packages depend on this package, AAM will warn you and ask for confirmation before proceeding.
Arguments¶
| Argument | Required | Description |
|---|---|---|
| PACKAGE | Yes | Name of the package to uninstall |
Options¶
| Option | Short | Default | Description |
|---|---|---|---|
--global | -g | false | Uninstall from global ~/.aam/ directory |
Examples¶
Example 1: Uninstall a Package¶
Output:
Uninstalling my-package@1.0.0...
Removing deployed artifacts from cursor...
✓ Removed skill: my-skill
✓ Removed agent: my-agent
✓ Uninstalled my-package
When the package was installed from a git source, the source name is shown in the confirmation:
Uninstalling docs-writer@0.0.0 from google-gemini/gemini-skills...
Removing deployed artifacts from cursor...
✓ Removed skill: docs-writer
✓ Uninstalled docs-writer
Example 2: Uninstall Scoped Package¶
Output:
Uninstalling @author/my-package@2.1.0...
Removing deployed artifacts from cursor...
✓ Removed skill: example-skill
✓ Uninstalled @author/my-package
Example 3: Package with Dependents (Warning)¶
Output:
Warning: 'dependency-package' is required by: my-agent, another-package.
Uninstall anyway? [y/N]: n
Aborted.
If you confirm:
Warning: 'dependency-package' is required by: my-agent, another-package.
Uninstall anyway? [y/N]: y
Uninstalling dependency-package@1.5.0...
Removing deployed artifacts from cursor...
✓ Removed skill: dep-skill
✓ Uninstalled dependency-package
Example 4: Package Not Installed¶
Output:
Example 5: Uninstall Global Package¶
Output:
Operating in global mode (~/.aam/)
Uninstalling my-package@1.0.0...
Removing deployed artifacts from cursor...
✓ Removed skill: my-skill
✓ Uninstalled my-package
Removes the package from ~/.aam/packages/ instead of the project-local directory.
Exit Codes¶
| Code | Meaning |
|---|---|
| 0 | Success - package uninstalled |
| 1 | Error - package not found or uninstall failed |
Uninstall Flow¶
When you run aam uninstall:
- Check if the package is installed
- Check for dependent packages
- Warn and prompt if dependents exist
- Load package manifest
- Undeploy artifacts from platform
- Remove package directory from
.aam/packages/ - Update lock file
Related Commands¶
aam install- Install a packageaam list- List installed packagesaam info- Show package details
Notes¶
Dependent Packages¶
AAM checks the lock file for packages that depend on the package you're uninstalling. If found, it will:
- Display the dependent package names
- Prompt for confirmation
- Proceed only if you confirm
This prevents breaking your environment by removing required dependencies.
Artifact Cleanup¶
Uninstall removes deployed artifacts from:
.cursor/skills/- Skills.cursor/rules/- Agents and instructions.cursor/prompts/- Prompts- Other platform-specific directories
Lock File Update¶
The lock file is automatically updated to remove the uninstalled package entry.
Orphaned Dependencies¶
Uninstalling a package does not automatically remove its dependencies. To remove unused dependencies, you would need to manually uninstall them:
Future versions may include an aam prune command to automatically remove orphaned dependencies.