script-delete

Delete specified script files and refresh the Unity AssetDatabase.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates the removal of script files from a Unity project, ensuring the editor refreshes and recompiles so the project stays clean and up-to-date.

Core Features & Use Cases

  • Automated deletion of specified script files to streamline project cleanup
  • Ensures AssetDatabase.Refresh() is called and Unity recompiles before reporting results
  • Use this in maintenance cycles to remove unused scripts or during refactoring

Quick Start

Delete the specified script file paths to remove unused scripts and refresh the Unity AssetDatabase so the editor recompiles before reporting results.

Frequently Asked Questions about script-delete

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

FAQPage Schema
How do I delete unused script files from a Unity project and force a recompile?

You can remove unused script files by providing their exact file paths to the automation tool. It deletes the specified scripts and triggers AssetDatabase.Refresh, waiting for Unity compilation to finish before returning results.

What happens to the Unity AssetDatabase after removing scripts?

After removing scripts, the Unity AssetDatabase is automatically refreshed. The tool ensures the editor initiates recompilation and waits for the process to complete before reporting results, keeping the project clean and up-to-date.

Can I automate Unity script removal during a project refactoring cycle?

Yes, you can automate Unity script removal during refactoring or maintenance cycles. By targeting specific script file paths for deletion, the tool streamlines cleanup and automatically refreshes the AssetDatabase to maintain an updated project state.

What do I need to provide to remove a Unity script asset using this tool?

You need to provide the exact file paths targeting the Unity script assets you want to delete. The tool operates directly on Unity projects via an HTTP interface to remove the scripts and refresh the AssetDatabase.

Does the tool wait for Unity to finish compiling after script deletion?

Yes, the tool waits for Unity compilation to complete after deleting scripts and calling AssetDatabase.Refresh. This ensures it only reports results once the editor has fully recompiled, leaving the project in a clean and up-to-date state.