script-delete

Delete Unity script files and refresh the AssetDatabase.

1|Updated Jan 26, 2026
One-click install
npx skills add https://github.com/lightvu25/Echoes --skill script-delete-lightvu25
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: script-delete
Source: https://github.com/lightvu25/Echoes/tree/main/SKILLS/script-delete
Command: npx skills add https://github.com/lightvu25/Echoes --skill script-delete-lightvu25

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automatically deletes specified Unity script files and triggers AssetDatabase.Refresh(), waiting for Unity compilation to finish to ensure project integrity.

Core Features & Use Cases

  • Delete specified script files from a Unity project and refresh the AssetDatabase.
  • Ensure Unity compilation completes before reporting results.
  • Use with script-read to inspect files before deletion or for auditing.

Quick Start

Tell the tool which Unity script file paths to delete, and it will remove them and wait for Unity to recompile.

Frequently Asked Questions about script-delete

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

FAQPage Schema
How do I delete Unity scripts and ensure compilation finishes automatically?

To delete Unity scripts safely, specify the explicit file paths and the tool removes them while automatically triggering AssetDatabase.Refresh to wait for Unity compilation to complete.

What is the best way to remove deprecated Unity script files during project maintenance?

Removing deprecated Unity script files during project maintenance requires providing explicit file paths to delete the assets and trigger an automatic AssetDatabase refresh for a clean project state.

Do I need to manually call AssetDatabase.Refresh after deleting a Unity script file?

No, you do not need to manually call AssetDatabase.Refresh after deleting a Unity script file because the tool automatically refreshes the AssetDatabase and explicitly waits for Unity compilation to finish.

Can I inspect Unity scripts before deletion to audit file contents?

Yes, you can use the script-read tool to inspect Unity scripts before deletion, allowing you to audit file contents and ensure you are only removing unused or deprecated scripts.

Why does Unity hang or delay after I delete a script file manually?

Deleting a Unity script file manually can cause delays because the editor must recompile assets, whereas using an automated script-delete tool triggers AssetDatabase.Refresh and explicitly waits for compilation to finish.