const collectionName = 'Students';
const ids = 'id-one,id-two';
domo.delete(`/domo/datastores/v2/collections/${collectionName}/documents/bulk?ids=${ids}`)
.then(result => console.log(result));
{
"Deleted": 3
}{
"status": 403,
"statusReason": "status 403 reading DocumentsResourceClient#bulkDeleteDocuments(UUID,List)",
"toe": "NSR9V0OFF0-N49OB-9PZHP"
}{
"status": 404,
"statusReason": "DA0088: Collection 'students' was not found in datastore 875557bc-679d-40a0-ac7e-9e8251dc3fde - it may not exist on this instance or may not be accessible",
"toe": "RTZEY0D56C-HXTOO-KP1IC"
}Delete Documents in Bulk
Remove multiple documents from a collection in a single request. IDs are passed as a comma-separated ids query parameter. Keep requests under approximately 700 UUIDs (~26 KB URL) to avoid HTTP 414 URI Too Long errors from the framework proxy; split larger deletes across multiple requests.
Warning
This is destructive and cannot be reversed. Deleting documents in an AppDB collection may have performance implications with regard to syncing to its corresponding DataSet in Domo if the syncEnabled property is set to true for the Collection.
DELETE
/
domo
/
datastores
/
v2
/
collections
/
{collectionName}
/
documents
/
bulk
const collectionName = 'Students';
const ids = 'id-one,id-two';
domo.delete(`/domo/datastores/v2/collections/${collectionName}/documents/bulk?ids=${ids}`)
.then(result => console.log(result));
{
"Deleted": 3
}{
"status": 403,
"statusReason": "status 403 reading DocumentsResourceClient#bulkDeleteDocuments(UUID,List)",
"toe": "NSR9V0OFF0-N49OB-9PZHP"
}{
"status": 404,
"statusReason": "DA0088: Collection 'students' was not found in datastore 875557bc-679d-40a0-ac7e-9e8251dc3fde - it may not exist on this instance or may not be accessible",
"toe": "RTZEY0D56C-HXTOO-KP1IC"
}
