Delete

Delete one qna

HTTP Request

DELETE https://api.botfuel.io/trainer/api/v0/qnas/<qna:id>

Example

curl -H "App-Id: $BOTFUEL_APP_ID" \
-H "App-Key: $BOTFUEL_APP_KEY" \
-X DELETE 'https://api.botfuel.io/trainer/api/v0/qnas/<qna:id>'
// Empty Response

Delete many qnas

HTTP Request

DELETE https://api.botfuel.io/trainer/api/v0/qnas

Request Structure

Parameter Type Description Required
ids Array Array of qna ids to be deleted Required

Response structure

Parameter Type Description
total_deleted Integer Total number of qnas deleted

Example

curl -X DELETE 'https://api.botfuel.io/trainer/api/v0/qnas' \
-d '{
  "ids": ["QNA_ID_1", "QNA_ID_2"]
}' \
-H "App-Id: $BOTFUEL_APP_ID" \
-H "App-Key: $BOTFUEL_APP_KEY"
{ "total_deleted": 2 }