Delete a Pitchlane media object
delete_mediaDelete a Pitchlane media object and its file, permanently. Refused (409 media_in_use) while any campaign uses it, including a deleted campaign that can still be restored. Media no campaign uses is deleted automatically 30 days after it was created, so this is rarely needed: confirm with the user 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": {
"media_id": "<media_id>"
},
"name": "delete_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| media_id | Yes | The media id, e.g. `med_V1StGXR8Z5jdHi6BmyT`. |