Delete File
Immutable Catalog Entry
This descriptor comes from the active versioned Portal catalog.
- Contract tier:
agent_ready - Risk:
destructive - Catalog version:
manus-2026.07.12.2 - Descriptor hash:
12546cd6bb9e4e99fbef7e2753b7c578330949b928a6c5f7499e1464e5e138d0
Use this Manus destructive tool when you need to delete a manus file early. requires explicit confirmation. It contacts the configured Manus API v2 POST /v2/file.delete endpoint and requires a request-scoped x-manus-api-key. Deletes uploaded file early; dry-run and confirm required. It is dry-run by default and requires confirm=true after approval before the provider write executes. The result is a compact, secret-redacted object and never includes the Portal grant or provider credential.
Request Body
{
"jsonrpc": "2.0",
"id": "manus-delete-file-example",
"method": "tools/call",
"params": {
"name": "manus.delete_file",
"arguments": {
"file_id": "file_id_123",
"confirm": false,
"dry_run": false
}
}
}
Arguments Schema
{
"type": "object",
"required": [
"file_id"
],
"properties": {
"confirm": {
"type": "boolean",
"default": false,
"description": "Set true only after reviewing the dry-run plan and obtaining required approval."
},
"dry_run": {
"type": "boolean",
"default": true,
"description": "Keep true to return a secret-safe execution preview without contacting the write endpoint."
},
"file_id": {
"type": "string",
"description": "Stable Manus file identifier returned by create_file_upload or another Manus response."
}
},
"additionalProperties": false
}
Output Schema
{
"type": "object",
"properties": {
"ok": {
"type": "boolean",
"description": "Whether the local or provider operation completed successfully."
},
"data": {
"description": "Bounded provider or local result data."
},
"error": {
"description": "Secret-safe provider or validation error details."
},
"dry_run": {
"type": "boolean",
"description": "Whether the result is an execution preview rather than a provider mutation."
},
"message": {
"type": "string",
"description": "Human-readable status or recovery guidance."
},
"http_status": {
"type": "integer",
"description": "Manus provider HTTP status when an external endpoint was contacted."
},
"next_action": {
"type": "string",
"description": "Recommended next agent action when another step is useful."
},
"confirmation_required": {
"type": "boolean",
"description": "Whether approval is required before a write can execute."
}
},
"description": "Secret-safe Manus MCP operation result.",
"additionalProperties": true
}
Code Examples
- cURL
- Node.js
- Python
curl -X POST 'https://portal.madpanda3d.com/api/mcp' \
-H 'Authorization: Bearer mad_live_***' \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"id": "manus-delete-file-example",
"method": "tools/call",
"params": {
"name": "manus.delete_file",
"arguments": {
"file_id": "file_id_123",
"confirm": false,
"dry_run": false
}
}
}'
const response = await fetch('https://portal.madpanda3d.com/api/mcp', {
method: 'POST',
headers: {
Authorization: 'Bearer mad_live_***',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"jsonrpc": "2.0",
"id": "manus-delete-file-example",
"method": "tools/call",
"params": {
"name": "manus.delete_file",
"arguments": {
"file_id": "file_id_123",
"confirm": false,
"dry_run": false
}
}
}),
});
const data = await response.json();
console.log(data);
import requests
url = 'https://portal.madpanda3d.com/api/mcp'
headers = {
'Authorization': 'Bearer mad_live_***',
'Content-Type': 'application/json',
}
payload = {
"jsonrpc": "2.0",
"id": "manus-delete-file-example",
"method": "tools/call",
"params": {
"name": "manus.delete_file",
"arguments": {
"file_id": "file_id_123",
"confirm": false,
"dry_run": false
}
}
}
response = requests.post(url, headers=headers, json=payload, timeout=60)
print(response.json())
Example Responses
- 200 Success
- 502 Upstream Error
{
"ok": true,
"message": "Tool manus.delete_file executed successfully.",
"note": "Response shape varies by MCP tool. Inspect live responses for exact fields."
}
{
"ok": false,
"classification": "upstream_http_error",
"message": "Upstream MCP returned a non-success status."
}