Delete a chat conversation
import requests
url = "https://platform.ankra.app/api/v1/org/clusters/{cluster_id}/kubernetes/chat/history/{conversation_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/clusters/{cluster_id}/kubernetes/chat/history/{conversation_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request DELETE \
--url https://platform.ankra.app/api/v1/org/clusters/{cluster_id}/kubernetes/chat/history/{conversation_id} \
--header 'Authorization: Bearer <token>'{
"success": true
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Chat
Delete a chat conversation
DELETE
/
api
/
v1
/
org
/
clusters
/
{cluster_id}
/
kubernetes
/
chat
/
history
/
{conversation_id}
Delete a chat conversation
import requests
url = "https://platform.ankra.app/api/v1/org/clusters/{cluster_id}/kubernetes/chat/history/{conversation_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/clusters/{cluster_id}/kubernetes/chat/history/{conversation_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request DELETE \
--url https://platform.ankra.app/api/v1/org/clusters/{cluster_id}/kubernetes/chat/history/{conversation_id} \
--header 'Authorization: Bearer <token>'{
"success": true
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Response
Conversation deleted successfully