Delete a project item
delete_project_itemDelete a clip, subclip, sequence, generated item, or bin from a Premiere Pro project without removing media files from disk. Block deletion of in-use items or non-empty bins unless explicitly allowed.
Instructions
Delete one item from the project: a clip, subclip, generated item, sequence or bin. The media file on disk is never deleted. Refuses (BAD_ARGS) a bin that still has contents unless delete_contents=true, and an item used on a timeline (for a bin: anything inside it) unless allow_used=true, in which case those timeline clips are removed too. Deleting a search bin removes only the search bin, never the items it shows. Returns the deleted item with deleted=true and usage_count. Use delete_project_items for several at once.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "delete_project_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item_id | No | Stable project item id (from list_project_items). Preferred. | |
| item_name | No | Item name; the first match in the project is used. | |
| item_path | No | Path in the Project panel, e.g. "Footage/Day 1/clip.mp4". | |
| allow_used | No | Allow deleting an item that timeline clips use; those clips are removed from their sequences. Default false. | |
| delete_contents | No | Allow deleting a bin together with everything inside it. Default false. |