Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Delete one or more `.cs` script files from disk, refresh the AssetDatabase, and wait for Unity compilation to settle before delivering the final result via the request's `requestId`. Pair with 'script-read' to inspect files before deletion.
27% 86%+59 ptsof test cases passed
Passed 19 of 22 test cases with the skill, and 6 of 22 without it.
3 of 3 safety checks passed
Not used yet
Delete the script file(s). Does AssetDatabase.Refresh() and waits for Unity compilation to complete before reporting results. Use 'script-read' tool to read existing script files first.
files — non-empty array of .cs paths. Every entry must exist on disk.requestId — required for the processing/delivered-later contract.Validates the array (non-empty, every entry ends with .cs, every entry exists). Deletes each file plus its sibling .meta (when present). Calls AssetDatabase.Refresh and schedules a post-compilation notification — the final response is delivered after Unity finishes the recompile triggered by the delete.
unity-mcp-cli run-tool script-delete --input '{
"files": "string_value"
}'
For complex input (multi-line strings, code), save the JSON to a file and use:
unity-mcp-cli run-tool script-delete --input-file args.jsonOr pipe via stdin (recommended):
unity-mcp-cli run-tool script-delete --input-file - <<'EOF' {"param": "value"} EOF
If unity-mcp-cli is not found, either install it globally (npm install -g unity-mcp-cli) or use npx unity-mcp-cli instead.
Read the /unity-initial-setup skill for detailed installation instructions.
Next to this one in the catalogue, plus more from the same author.