DELETE
/
api
/
v2
/
data-sources
curl --request DELETE \
  --url https://app.livechatai.com/api/v2/data-sources \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "agentId": "clx1234567890abcdef",
  "source": "WEBSITE",
  "id": "ds_1234567890",
  "ids": [
    "ds_1234567890",
    "ds_0987654321"
  ]
}'
{
  "status": "success",
  "data": {
    "message": "2 items deleted successfully",
    "agentId": "clx1234567890abcdef",
    "source": "TEXT",
    "deleted": [
      "ds_1234567890",
      "ds_0987654321"
    ],
    "notFound": []
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Data source deletion details

The body is of type object.

Response

200
application/json

Data sources deleted successfully

The response is of type object.