Remove a page from a collection
DELETE/api/v1/workspaces/{workspace_slug}/collections/{collection_id}/pages/{page_collection_id}/
Removes the page and its descendants from the collection. A sub-page cannot be removed independently from a private collection. Removing a private collection root requires permission to move that page tree out of the collection.
Path Parameters
workspace_slug:requiredstringThe workspace slug.
collection_id:requireduuidThe collection ID.
page_collection_id:requireduuidThe page membership ID returned as page_collection_id by the list endpoint.
Scopes
write or wiki.pages:write
Remove a page from a collection
bash
curl -X DELETE "https://api.plane.so/api/v1/workspaces/my-workspace/collections/collection-uuid/pages/membership-uuid/" -H "X-API-Key: $PLANE_API_KEY"python
import requests
url = "https://api.plane.so/api/v1/workspaces/my-workspace/collections/collection-uuid/pages/membership-uuid/"
print(requests.delete(url, headers={"X-API-Key": "your-api-key"}).status_code)javascript
// Run this example server-side. Browser apps must call your backend to keep the API key secret.
const url =
"https://api.plane.so/api/v1/workspaces/my-workspace/collections/collection-uuid/pages/membership-uuid/";
const response = await fetch(url, {
method: "DELETE",
headers: { "X-API-Key": process.env.PLANE_API_KEY },
});
console.log(response.status);Response204
text
No response body
