Move Flow media to the trash (two steps)
flow_trashMoves project media to Flow's trash, where it stays restorable. Previews items and returns a confirmation code first; call again with that code to complete the move.
Instructions
Moves project media to Flow's trash, where it can still be restored in Flow. Always two calls: first without confirmation, which only previews the items (title, type, what was made from them) and returns a confirmation code; show that list to the user and get their OK; then call again with the same media_ids and that code. The code only works for exactly the previewed set. To clean up repeated uploads use duplicateUploads from flow_assets.
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": {
"project_id": "<project_id>",
"media_ids": "<media_ids>"
},
"name": "flow_trash"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| media_ids | Yes | ||
| project_id | Yes | ||
| confirmation | No | The code from the preview, after the user agreed |