package-remove

Remove a Unity package from the project's manifest.json and trigger package resolution.

Updated Feb 4, 2024
One-click install
npx skills add https://github.com/sprillion/gem_td --skill package-remove-sprillion
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: package-remove
Source: https://github.com/sprillion/gem_td/tree/main/SKILLS/package-remove
Command: npx skills add https://github.com/sprillion/gem_td --skill package-remove-sprillion

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Remove (uninstall) a package from the Unity project. This removes the package from the project's manifest.json and triggers package resolution. Note: Built-in packages and packages that are dependencies of other installed packages cannot be removed. Note: Package removal may trigger a domain reload. The result will be sent after the reload completes. Use 'package-list' tool to list installed packages first.

Core Features & Use Cases

  • Remove a package from manifest and trigger package resolution.
  • Safeguards: prevents removal of built-in or dependent packages.
  • Use Case: Clean up unused packages in a Unity project.

Quick Start

Invoke the package-remove tool with a valid packageId to uninstall a package.

Frequently Asked Questions about package-remove

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I remove a Unity package from my project's manifest?

To remove a Unity package, you uninstall it by removing its entry from the project's manifest.json, which triggers package resolution to complete the removal and update your project.

Why can't I remove certain Unity packages from my project?

You cannot remove built-in Unity packages or packages that serve as dependencies for other installed packages in your project, as the removal validation process blocks uninstalling these required components.

What happens to my Unity project after uninstalling a package?

After uninstalling a package, Unity triggers a domain reload to resolve the updated manifest state, and the final removal result is sent only after this domain reload process completes.

How do I find the packageId needed to uninstall a Unity package?

To find the valid packageId required for removal, use the package-list tool to list all installed packages in your Unity project before invoking the package-remove command.

Can I use this to clean up unused packages in a Unity project?

Yes, you can clean up unused packages in a Unity project by removing them from the manifest, provided they are not built-in packages or required dependencies of other installed packages.