MCPOutils MCP/Médias/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.
Paramètres
assetKeystringobligatoire
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.
Exemple de requête
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "delete_asset",
"arguments": {
"assetKey": "string"
}
}
}Exemple de réponse
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"content": [
{
"type": "text",
"text": "..."
}
]
}
}La forme de la réponse est indicative — le contenu réel dépend de l'outil et de vos données.