Workspace API
Delete a View
Delete shared workspace Views with DELETE /workspace/views/{id} and POST /delete/batch.
DELETE https://api.parcelengineering.com/api/v1/workspace/views/{id}POST https://api.parcelengineering.com/api/v1/workspace/views/delete/batchDeletes a shared View. Favorites for every member cascade with the View. Static membership rows are removed.
Delete costs 0 credits. Requires workspace:write.
The Workspace API requires the Pro plan. A request from a non-Pro workspace or a non-member receives 403 forbidden.
Path parameters (single)
| Parameter | Description |
|---|---|
id | UUID of the View to delete. |
Batch body
{ "ids": ["a1b2c3d4-0001-4e8d-bf6a-000000000001", "b2c3d4e5-0002-4e8d-bf6a-000000000002"] }1–100 UUIDs. Per-item results in input order; one failure never aborts the rest. See Batch Writes.
Example
curl -X DELETE \ https://api.parcelengineering.com/api/v1/workspace/views/a1b2c3d4-0001-4e8d-bf6a-000000000001 \ -H "Authorization: Bearer pcl_your_api_key"const response = await fetch( 'https://api.parcelengineering.com/api/v1/workspace/views/a1b2c3d4-0001-4e8d-bf6a-000000000001', { method: 'DELETE', headers: { 'Authorization': 'Bearer pcl_your_api_key' }, });
const { data, metadata } = await response.json();Response
{ "data": { "deleted": true }, "metadata": { "credits": 0 }}Unknown or out-of-workspace ids return 404 view_not_found on the single route. Batch items report per-id errors.