assets-delete

Delete Unity project assets at provided paths and refresh AssetDatabase.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates removing specified assets from a Unity project and ensures AssetDatabase.Refresh() is called to keep the editor state consistent.

Core Features & Use Cases

  • Remove assets at given paths from the project to reclaim space.
  • Automatically refresh the AssetDatabase after deletions to keep the Unity editor in sync.
  • Use assets-find to locate assets before performing deletion to minimize mistakes.
  • Use Case: Before a build or cleanup, batch-delete unused assets to reduce project size.

Quick Start

Provide the asset paths to delete through the API and run the tool to remove them and refresh the AssetDatabase.

Frequently Asked Questions about assets-delete

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

FAQPage Schema
How do I automate deleting unused Unity assets before a build?

To automate deleting unused Unity assets before a build, you provide specific asset paths for batch removal. This process reclaims project space and ensures the editor stays in sync by automatically invoking AssetDatabase.Refresh after the deletions.

What is the best way to batch delete assets in a Unity project?

Batch deleting assets in a Unity project is handled by supplying valid file paths to an automated deletion workflow. This method removes the specified assets from your project and immediately calls AssetDatabase.Refresh to maintain consistent editor state.

Why does the Unity editor not update after I delete project assets?

The Unity editor may not update after deleting project assets because AssetDatabase.Refresh is not called. Automating your asset deletion through a dedicated workflow ensures this refresh method is invoked automatically, keeping the editor in sync.

Can I use this asset cleanup workflow for general Unity project maintenance?

Yes, you can use this asset cleanup workflow for general Unity project maintenance. It accepts valid asset paths as input to remove unwanted files and automatically refreshes the AssetDatabase, making it suitable for reclaiming space during routine upkeep.

Do I need to locate assets manually before deleting them?

You do not need to locate assets manually before deleting them if you use an asset finding tool first. Providing accurate paths to the deletion workflow minimizes mistakes and ensures only the intended assets are removed from your Unity project.