Skip to main content
DELETE
/
api
/
v1
/
data-sources
/
batch
Delete multiple data sources
curl --request DELETE \
  --url https://api.getdecisional.ai/api/v1/data-sources/batch \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "ids": [
    "dsc_abc123xyz789",
    "dsc_abc123xyz790",
    "dsc_abc123xyz791"
  ]
}
'
[ { "id": "dsc_abc123xyz789", "success": true }, { "id": "dsc_abc123xyz790", "success": false, "error": "data source not found" }, { "id": "dsc_abc123xyz791", "success": true } ]

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json
ids
string[]
required

Array of data source IDs to delete

Example:
[
  "dsc_abc123xyz789",
  "dsc_abc123xyz790",
  "dsc_abc123xyz791"
]

Response

Batch delete results

id
string
required

Data source ID

success
boolean
required

Whether the deletion was successful

error
string

Error message if deletion failed