delete_collection
Delete a collection with Wavegrain's MCP server: the delete_collection tool needs the write permission. Inputs, outputs and an example call.
Delete a collection. Permission: write. Changes or removes saved work.
Delete one of the user's image collections; its images stay in the Media library. Ask the user first.
Inputs
| Input | Type | Required | Notes |
|---|---|---|---|
collectionId | string | yes | A collection id from list_collections. up to 200 characters |
The fields inside an object or a list are in the JSON Schema at /developers/mcp-tools.json.
Returns
| Field | Type | Notes |
|---|---|---|
collectionId | string | The collection deleted. |
name | string | Its name. |
deleted | true | It is gone. |
note | string | What to tell the user. |
Example call
Send it to POST https://wavegrain.com/api/mcp with an access key that has the write permission; Authentication shows how to make one.
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "delete_collection",
"arguments": {
"collectionId": "<collectionId>"
}
}
}
The call shows only the required inputs, with placeholder values: put your own in.
Related tools
rename_slideshow: Rename a slideshowdelete_slideshow: Delete a slideshowupdate_collection: Rename a collectionedit_collection_images: Remove or move collection imagesrevoke_review_link: Turn off a review linkpause_automation: Pause an automation- All 79 tools
Something wrong or missing? Write to support@wavegrain.com.