script-delete

Deletes specified script files from a Unity project directory.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/lunafish/Game00 --skill script-delete
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: script-delete
Source: https://github.com/lunafish/Game00/tree/main/SKILLS/script-delete
Command: npx skills add https://github.com/lunafish/Game00 --skill script-delete

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill removes specified script files from your project, helping to clean up your codebase.

Core Features & Use Cases

  • File Deletion: Removes one or more script files.
  • Unity Refresh: Automatically refreshes the Unity AssetDatabase and waits for compilation.
  • Use Case: After refactoring, you can use this Skill to delete old, unused script files.

Quick Start

Delete the file located at Assets/Scripts/OldScript.cs.

Frequently Asked Questions about script-delete

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

FAQPage Schema
How do I delete script files in Unity and refresh the AssetDatabase?

To delete script files in Unity, specify the file paths for removal. The process automatically handles the AssetDatabase refresh and waits for compilation to complete, ensuring your code cleanup does not leave broken references.

What is the best way to remove obsolete scripts after refactoring a Unity project?

Removing obsolete scripts after refactoring is handled by targeting specific file paths, such as Assets/Scripts/OldScript.cs, for deletion. This cleans up your codebase while the system manages the required Unity AssetDatabase refresh.

Can I use this to delete multiple script files at once?

Yes, you can delete multiple script files from your Unity project directory. The process supports removing one or more specified scripts and automatically waits for the Unity compilation process to finish after the deletion.

Why does Unity need to wait for compilation after deleting a script?

Unity needs to wait for compilation after deleting a script to properly update the AssetDatabase and resolve references. Automatically waiting for this process ensures the project remains stable and avoids errors during code cleanup.