script-delete

Delete specified Unity script files and refresh the AssetDatabase.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/Silac1995/My-World-Isekai-Unity --skill script-delete-silac1995
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: script-delete
Source: https://github.com/Silac1995/My-World-Isekai-Unity/tree/main/.claude/skills/script-delete
Command: npx skills add https://github.com/Silac1995/My-World-Isekai-Unity --skill script-delete-silac1995

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Deletes specified script files from a Unity project and refreshes the AssetDatabase to ensure Unity recognizes changes after compilation, reducing manual cleanup time.

Core Features & Use Cases

  • Batch-delete scripts by path with safety check via reading existing files using the script-read tool.
  • Ensure Unity recompiles cleanly by waiting for AssetDatabase refresh and compilation to complete.
  • Use during refactoring or cleanup to remove obsolete scripts without breaking the project.

Quick Start

Provide a JSON with the file paths to delete under Assets/ and run the script-delete tool to perform the deletions.

Frequently Asked Questions about script-delete

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

FAQPage Schema
How do I safely delete Unity scripts and refresh the AssetDatabase after compilation?

To safely delete Unity scripts, provide a JSON list of file paths under Assets/ and the tool removes them, then calls AssetDatabase.Refresh() and waits for Unity compilation to finish to ensure clean project recognition.

What's the best way to batch remove obsolete scripts during a large Unity project refactoring?

Batch removing obsolete scripts during Unity refactoring is handled by passing multiple file paths to the deletion tool, which reads existing files for a safety check before removing them and triggering an AssetDatabase refresh.

Can I inspect Unity script files before deleting them during project cleanup?

Yes, you can inspect Unity script files before deletion because the tool uses the script-read tool to read existing files as a safety check, ensuring you only remove unwanted legacy assets during project maintenance.

Why does Unity not recognize deleted scripts until AssetDatabase refresh completes?

Unity does not recognize deleted scripts immediately because the editor requires AssetDatabase.Refresh() to recompile assets; this tool waits for compilation to finish, ensuring Unity recognizes changes without breaking the project.

Do I need to provide specific file paths under Assets/ to delete Unity scripts?

Yes, you need to provide a JSON list of specific file paths under Assets/ to delete Unity scripts, as the tool requires exact paths to locate and remove the correct files during your project cleanup or refactoring.