Remove a document from a bot's knowledge
deletehttps://api.whatsable.app/v1/ai-bots/{id}/knowledge-files/{file_id}
Build a request to copy
This page never sends a request. Fill in the fields, then copy the request and run it from your server.
Request
curl -X DELETE 'https://api.whatsable.app/v1/ai-bots/string/knowledge-files/string'
bearerAuthheader
AuthorizationBearer <nfy_live_<32 characters>>An API key from Settings > API keys, sent as Authorization: Bearer <key>.
id*stringThe bot id.
Length
1 <= length <= 64file_id*stringThe knowledge document id. It must belong to this bot.
Length
1 <= length <= 64The document was removed.
application/json- response
object*stringid*stringLength
1 <= length <= 64deleted*booleancurl -X DELETE 'https://api.whatsable.app/v1/ai-bots/string/knowledge-files/string'Example Response
{ "object": "knowledge_file", "id": "string", "deleted": true}