Delete Folders or Files
Enterprise Search
Delete Folders or Files
1️⃣ Overview
Purpose:
Deletes one or more folders or files from a workspace.
Multiple items can be deleted in a single request by passing their IDs in the ids array.
2️⃣ Endpoint
DELETE /noCo/api/v2/workspaces/{workspaceId}/folder
3️⃣ Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| workspaceId | string | ✅ Yes | The ID of the workspace containing the folders or files to delete |
4️⃣ Authentication
Requires authentication using:
Authorization: Bearer <token>
5️⃣ Request Headers
| Header | Required |
|---|---|
| Authorization | ✅ Yes |
6️⃣ Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| ids | array of strings | ✅ Yes | List of folder or file IDs to delete |
7️⃣ Example Request
curl --location --request DELETE 'https://be.datagol.ai/noCo/api/v2/workspaces/{workspaceId}/folder' \
--header 'Authorization: Bearer <token>' \
--data-raw '{"ids":["d287afa7-2006-4a91-ae24-03a548d0b58f"]}'
8️⃣ Behavior Summary
Deletes one or more folders or files from the specified workspace.
Multiple IDs can be passed in a single request for bulk deletion.
DELETE
Delete Folders or Files