delete_collection
Remove a collection from Lightroom Classic by specifying its ID to manage your photo catalog and organize your editing workspace.
Instructions
Delete a collection by its ID.
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": {
"collection_id": "<collection_id>"
},
"name": "delete_collection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| collection_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- The implementation of the delete_collection tool, which is registered as an MCP tool and calls the internal _call method.
@mcp.tool() async def delete_collection(collection_id: int) -> dict[str, Any]: """Delete a collection by its ID.""" return await _call("catalog.delete_collection", {"collection_id": collection_id})