MCPMCP-Tools/Medien/delete_asset
delete_asset
Writemedia:write
Deprecated — use archive_asset. Despite the name this does NOT delete or erase anything: it archives the upload exactly as archive_asset does (bytes, folders/tags and share links all stay). Kept so existing callers keep working; it returns the same result plus deleted:true.
Parameter
assetKeystringerforderlich
The asset's key to archive, e.g. "upload:abc123" (required). For uploads, accepts upload:<database ID> or upload:up-<public ID>. Other asset sources retain their existing keys. IDs must belong to the authenticated agency and permitted client.
Beispielanfrage
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "delete_asset",
"arguments": {
"assetKey": "string"
}
}
}Beispielantwort
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"content": [
{
"type": "text",
"text": "..."
}
]
}
}Die Antwortform dient nur zur Veranschaulichung — der tatsächliche Inhalt hängt vom Tool und Ihren Daten ab.