script-delete

Deletes Unity script files and waits for compilation to complete.

1|Updated Apr 1, 2026
One-click install
npx skills add https://github.com/Fermisloth/Project-Aegis-Adaptive-Outbreak-Containment --skill script-delete-fermisloth
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: script-delete
Source: https://github.com/Fermisloth/Project-Aegis-Adaptive-Outbreak-Containment/tree/main/.agent/skills/script-delete
Command: npx skills add https://github.com/Fermisloth/Project-Aegis-Adaptive-Outbreak-Containment --skill script-delete-fermisloth

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires unity-mcp-cli.

What problem does it solve? Removing obsolete C# scripts from a Unity project manually requires deleting files and then waiting for the editor to recompile before you know the project state is stable. This Skill automates that deletion through the unity-mcp-cli and blocks until Unity finishes compiling, so you get a confirmed result instead of guessing. ## Core Features & Use Cases - Script File Deletion: Deletes one or more C# script files by path (e.g., "Assets/Scripts/MyScript.cs") via the unity-mcp-cli run-tool command. - Automatic Refresh and Compile Wait: Triggers AssetDatabase.Refresh() and waits for Unity compilation to finish before reporting results. - Use Case: While refactoring a Unity gameplay system, you need to remove several deprecated controller scripts. Pass their paths to this Skill and receive confirmation only after the project has recompiled without the deleted files. ## Quick Start Delete the Unity script at Assets/Scripts/OldController.cs and confirm the project compiles after removal.

Frequently Asked Questions about script-delete

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

FAQPage Schema
How do I delete a Unity script file from the command line?▼

Run unity-mcp-cli run-tool script-delete with a JSON input containing the files array, for example {"files": ["Assets/Scripts/MyScript.cs"]}. The tool deletes the files, refreshes the AssetDatabase, and waits for compilation to finish.

How to delete multiple C# scripts in Unity at once?▼

Pass multiple file paths in the files array of the JSON input, such as {"files": ["Assets/Scripts/A.cs", "Assets/Scripts/B.cs"]}. All listed files are deleted in a single call before Unity recompiles.

What should I do before deleting a Unity script?▼

Read the existing script first using the script-read tool to confirm its contents and check for references. Deleting a script that other components depend on will cause compile errors after the refresh.

Why is unity-mcp-cli not found when running script-delete?▼

The CLI is not installed or not on your PATH. Install it globally with npm install -g unity-mcp-cli, or prefix commands with npx unity-mcp-cli. The unity-initial-setup skill covers detailed installation steps.

Does script-delete return the deletion result as structured output?▼

No, this tool does not return structured output. It performs the deletion, refreshes the AssetDatabase, and waits for Unity compilation to complete before reporting results.