Delete

Delete one intent

HTTP Request

DELETE https://api.botfuel.io/trainer/api/v0/intents/<intent:id>

Example

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

Delete many intents

HTTP Request

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

Request Structure

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

Response structure

Parameter Type Description
total_deleted Integer Total number of intents deleted

Example

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