assets-delete

Remove specified assets from a Unity project by their paths.

3.8k|349|Updated Apr 2, 2025
One-click install
npx skills add https://github.com/IvanMurzak/Unity-MCP --skill assets-delete-ivanmurzak
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: assets-delete
Source: https://github.com/IvanMurzak/Unity-MCP/tree/main/Unity-MCP-Plugin/.claude/skills/assets-delete
Command: npx skills add https://github.com/IvanMurzak/Unity-MCP --skill assets-delete-ivanmurzak

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Keeping a Unity project clean often requires removing unused or deprecated assets by path, which can be error-prone and tedious when done manually.

Core Features & Use Cases

  • Path-based asset deletion: Remove assets from anywhere in the project by specifying their paths, with automatic asset database refresh after.
  • Safe operation & validation: Validate input paths and report failures without partial deletions to prevent project damage.
  • Use Case: A team migrates a project and needs to prune obsolete textures and models by path to shrink build size.

Quick Start

Provide the paths to delete and run the tool to remove those assets from the Unity project.

Frequently Asked Questions about assets-delete

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

FAQPage Schema
How do I delete Unity assets by path to clean up my project?

To delete Unity assets by path, you provide the specific file paths to the removal tool, which then safely removes them from the project and automatically runs AssetDatabase.Refresh() to update the asset database.

What is the safest way to remove unused Unity assets for build size reduction?

The safest way to remove unused Unity assets is using an automated path-based deletion tool that validates input paths and reports failures without partial deletions, preventing project damage during migration or build cleanup.

Can I automate pruning obsolete Unity models and textures by file path?

Yes, you can automate pruning obsolete Unity models and textures by specifying their file paths in a batch deletion command, which removes the assets and refreshes the AssetDatabase to reflect changes.

How does AssetDatabase.Refresh work after deleting Unity assets?

AssetDatabase.Refresh runs automatically after asset deletions to synchronize the Unity project's internal database with the file system, ensuring the editor immediately recognizes removed files and reports any encountered errors.

What happens if a Unity asset deletion fails or the path is invalid?

If a Unity asset deletion fails due to an invalid path, the operation reports the error and prevents partial deletions, ensuring the project remains stable and undamaged without inconsistent asset states.

Does automated asset deletion work for pruning unused files in Unity MCP workflows?

Yes, automated asset deletion works within Unity MCP workflows by accepting path arrays to remove specified assets, making it suitable for maintenance tasks like pruning unused files and cleaning up builds via automation.