delete_media
Permanently remove a media file from the Strapi library using its ID. This action deletes the file and breaks references in content entries.
Instructions
Permanently delete a file from the Strapi media library by its ID. This removes the file from storage and breaks any references to it in content entries. Use list_media first to find the correct file ID before deleting. This action cannot be undone.
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": {
"file_id": "<file_id>"
},
"name": "delete_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | Numeric ID of the media file to permanently delete from the library |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |