| name | assets-delete |
| description | Delete the assets at paths from the project. Does AssetDatabase.Refresh() at the end. Use 'assets-find' tool to find assets before deleting. |
Assets / Delete
Delete the assets at paths from the project. Does AssetDatabase.Refresh() at the end. Use 'assets-find' tool to find assets before deleting.
How to Call
HTTP API (Direct Tool Execution)
Execute this tool directly via the MCP Plugin HTTP API:
curl -X POST http://localhost:54437/api/tools/assets-delete \
-H "Content-Type: application/json" \
-d '{
"paths": "string_value"
}'
With Authorization (if required)
curl -X POST http://localhost:54437/api/tools/assets-delete \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_TOKEN" \
-d '{
"paths": "string_value"
}'
The token is stored in the file: UserSettings/AI-Game-Developer-Config.json
Using the format: "token": "YOUR_TOKEN"
Input
| Name | Type | Required | Description |
|---|
paths | any | Yes | The paths of the assets |
Input JSON Schema
{
"type": "object",
"properties": {
"paths": {
"$ref": "#/$defs/System.String[]",
"description": "The paths of the assets"
}
},
"$defs": {
"System.String[]": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"paths"
]
}
Output
Output JSON Schema
{
"type": "object",
"properties": {
"result": {
"$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Assets\u002BDeleteAssetsResponse"
}
},
"$defs": {
"System.Collections.Generic.List\u003CSystem.String\u003E": {
"type": "array",
"items": {
"type": "string"
}
},
"com.IvanMurzak.Unity.MCP.Editor.API.Tool_Assets\u002BDeleteAssetsResponse": {
"type": "object",
"properties": {
"DeletedPaths": {
"$ref": "#/$defs/System.Collections.Generic.List\u003CSystem.String\u003E",