Delete multiple files in a single request
curl --request POST \
--url https://paradigm.lighton.ai/api/v3/files/bulk-delete \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ids": [
123,
124,
125
]
}
'import requests
url = "https://paradigm.lighton.ai/api/v3/files/bulk-delete"
payload = { "ids": [123, 124, 125] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({ids: [123, 124, 125]})
};
fetch('https://paradigm.lighton.ai/api/v3/files/bulk-delete', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Files
Delete multiple files in a single request
Permanently delete multiple files in a single request.
Authorization (applied to every file in the request):
- Visibility: file must be accessible to the user → 404 if any are not found
- Delete permission: user must have the right to delete each file → 403 if any are denied
- Workspace type: workspace must not be sync-managed → 400 if any are synced
Public datasets: instance admins (MANAGE_PUBLIC_DATASET) can bulk-delete public-dataset files. A workspace-scoped API key with read-only access to a public dataset can see the file (so it counts toward visibility) but gets 403 on the delete-permission check — public datasets are read-only for opted-in companies.
Returns 204 (No Content) on success.
POST
/
api
/
v3
/
files
/
bulk-delete
Delete multiple files in a single request
curl --request POST \
--url https://paradigm.lighton.ai/api/v3/files/bulk-delete \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ids": [
123,
124,
125
]
}
'import requests
url = "https://paradigm.lighton.ai/api/v3/files/bulk-delete"
payload = { "ids": [123, 124, 125] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({ids: [123, 124, 125]})
};
fetch('https://paradigm.lighton.ai/api/v3/files/bulk-delete', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Authorizations
Body
application/json
Response
Files deleted successfully (no content returned)