Skip to main content

Delete Multiple Account Collections

DELETE /v1/account/collection

Soft deletes multiple account collections for the authenticated tenant by their IDs. Collections that are referenced by price rules are skipped and must be deleted individually. The operation returns a per-ID status map and summary metadata so clients can confirm which collections were removed and which were not.

Request Body

{
"collectionIds": ["collection-id-1"]
}

Response Example

{
"deleted": {
"collection-id-1": true
},
"metadata": {
"matchedCount": 1,
"deletedCount": 1,
"notDeletedCount": 0
}
}