script-delete
Delete script files in Unity, automatically refreshing the AssetDatabase and waiting for compilation to complete before confirming results.
Instructions
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"files": "<files>"
},
"name": "script-delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | Array of file paths to delete. Example: ["Assets/Scripts/Old.cs"] | |
| requestId | No |