curl
curl --request DELETE \
--url https://example.algolia.net/agent-studio/1/agents/lorem/conversations/lorem \
--header 'x-algolia-api-key: ALGOLIA_API_KEY' \
--header 'x-algolia-application-id: ALGOLIA_APPLICATION_ID'// Initialize the client
var client = new AgentStudioClient(
new AgentStudioConfig("ALGOLIA_APPLICATION_ID", "ALGOLIA_API_KEY")
);
// Call the API
await client.DeleteConversationAsync(
"test-conversation-id",
"76710f1b-8231-42e5-b0d1-f43aac618e15"
);// Initialize the client
final client = AgentStudioClient(
appId: 'ALGOLIA_APPLICATION_ID', apiKey: 'ALGOLIA_API_KEY');
// Call the API
await client.deleteConversation(
conversationId: "test-conversation-id",
agentId: "76710f1b-8231-42e5-b0d1-f43aac618e15",
);// Initialize the client
client, err := agentStudio.NewClient("ALGOLIA_APPLICATION_ID", "ALGOLIA_API_KEY")
if err != nil {
// The client can fail to initialize if you pass an invalid parameter.
panic(err)
}
// Call the API
err = client.DeleteConversation(client.NewApiDeleteConversationRequest(
"test-conversation-id", "76710f1b-8231-42e5-b0d1-f43aac618e15"))
if err != nil {
// handle the eventual error
panic(err)
}// Initialize the client
AgentStudioClient client = new AgentStudioClient("ALGOLIA_APPLICATION_ID", "ALGOLIA_API_KEY");
// Call the API
client.deleteConversation("test-conversation-id", "76710f1b-8231-42e5-b0d1-f43aac618e15");// Initialize the client
const client = agentStudioClient('ALGOLIA_APPLICATION_ID', 'ALGOLIA_API_KEY');
// Call the API
await client.deleteConversation({
conversationId: 'test-conversation-id',
agentId: '76710f1b-8231-42e5-b0d1-f43aac618e15',
});// Initialize the client
val client = AgentStudioClient(appId = "ALGOLIA_APPLICATION_ID", apiKey = "ALGOLIA_API_KEY")
// Call the API
client.deleteConversation(
conversationId = "test-conversation-id",
agentId = "76710f1b-8231-42e5-b0d1-f43aac618e15",
)// Initialize the client
$client = AgentStudioClient::create('ALGOLIA_APPLICATION_ID', 'ALGOLIA_API_KEY');
// Call the API
$client->deleteConversation(
'test-conversation-id',
'76710f1b-8231-42e5-b0d1-f43aac618e15',
);# Initialize the client
# In an asynchronous context, you can use AgentStudioClient instead, which exposes the exact same methods.
client = AgentStudioClientSync("ALGOLIA_APPLICATION_ID", "ALGOLIA_API_KEY")
# Call the API
client.delete_conversation(
conversation_id="test-conversation-id",
agent_id="76710f1b-8231-42e5-b0d1-f43aac618e15",
)# Initialize the client
client = Algolia::AgentStudioClient.create("ALGOLIA_APPLICATION_ID", "ALGOLIA_API_KEY")
# Call the API
client.delete_conversation("test-conversation-id", "76710f1b-8231-42e5-b0d1-f43aac618e15")// Initialize the client
val client = AgentStudioClient(appId = "ALGOLIA_APPLICATION_ID", apiKey = "ALGOLIA_API_KEY")
// Call the API
Await.result(
client.deleteConversation(
conversationId = "test-conversation-id",
agentId = "76710f1b-8231-42e5-b0d1-f43aac618e15"
),
Duration(100, "sec")
)// Initialize the client
let client = try AgentStudioClient(appID: "ALGOLIA_APPLICATION_ID", apiKey: "ALGOLIA_API_KEY")
// Call the API
try await client.deleteConversation(
conversationId: "test-conversation-id",
agentId: "76710f1b-8231-42e5-b0d1-f43aac618e15"
){
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Conversations
Delete Conversation
Deletes the conversation with the given ID.
DELETE
/
1
/
agents
/
{agentId}
/
conversations
/
{conversationId}
curl
curl --request DELETE \
--url https://example.algolia.net/agent-studio/1/agents/lorem/conversations/lorem \
--header 'x-algolia-api-key: ALGOLIA_API_KEY' \
--header 'x-algolia-application-id: ALGOLIA_APPLICATION_ID'// Initialize the client
var client = new AgentStudioClient(
new AgentStudioConfig("ALGOLIA_APPLICATION_ID", "ALGOLIA_API_KEY")
);
// Call the API
await client.DeleteConversationAsync(
"test-conversation-id",
"76710f1b-8231-42e5-b0d1-f43aac618e15"
);// Initialize the client
final client = AgentStudioClient(
appId: 'ALGOLIA_APPLICATION_ID', apiKey: 'ALGOLIA_API_KEY');
// Call the API
await client.deleteConversation(
conversationId: "test-conversation-id",
agentId: "76710f1b-8231-42e5-b0d1-f43aac618e15",
);// Initialize the client
client, err := agentStudio.NewClient("ALGOLIA_APPLICATION_ID", "ALGOLIA_API_KEY")
if err != nil {
// The client can fail to initialize if you pass an invalid parameter.
panic(err)
}
// Call the API
err = client.DeleteConversation(client.NewApiDeleteConversationRequest(
"test-conversation-id", "76710f1b-8231-42e5-b0d1-f43aac618e15"))
if err != nil {
// handle the eventual error
panic(err)
}// Initialize the client
AgentStudioClient client = new AgentStudioClient("ALGOLIA_APPLICATION_ID", "ALGOLIA_API_KEY");
// Call the API
client.deleteConversation("test-conversation-id", "76710f1b-8231-42e5-b0d1-f43aac618e15");// Initialize the client
const client = agentStudioClient('ALGOLIA_APPLICATION_ID', 'ALGOLIA_API_KEY');
// Call the API
await client.deleteConversation({
conversationId: 'test-conversation-id',
agentId: '76710f1b-8231-42e5-b0d1-f43aac618e15',
});// Initialize the client
val client = AgentStudioClient(appId = "ALGOLIA_APPLICATION_ID", apiKey = "ALGOLIA_API_KEY")
// Call the API
client.deleteConversation(
conversationId = "test-conversation-id",
agentId = "76710f1b-8231-42e5-b0d1-f43aac618e15",
)// Initialize the client
$client = AgentStudioClient::create('ALGOLIA_APPLICATION_ID', 'ALGOLIA_API_KEY');
// Call the API
$client->deleteConversation(
'test-conversation-id',
'76710f1b-8231-42e5-b0d1-f43aac618e15',
);# Initialize the client
# In an asynchronous context, you can use AgentStudioClient instead, which exposes the exact same methods.
client = AgentStudioClientSync("ALGOLIA_APPLICATION_ID", "ALGOLIA_API_KEY")
# Call the API
client.delete_conversation(
conversation_id="test-conversation-id",
agent_id="76710f1b-8231-42e5-b0d1-f43aac618e15",
)# Initialize the client
client = Algolia::AgentStudioClient.create("ALGOLIA_APPLICATION_ID", "ALGOLIA_API_KEY")
# Call the API
client.delete_conversation("test-conversation-id", "76710f1b-8231-42e5-b0d1-f43aac618e15")// Initialize the client
val client = AgentStudioClient(appId = "ALGOLIA_APPLICATION_ID", apiKey = "ALGOLIA_API_KEY")
// Call the API
Await.result(
client.deleteConversation(
conversationId = "test-conversation-id",
agentId = "76710f1b-8231-42e5-b0d1-f43aac618e15"
),
Duration(100, "sec")
)// Initialize the client
let client = try AgentStudioClient(appID: "ALGOLIA_APPLICATION_ID", apiKey: "ALGOLIA_API_KEY")
// Call the API
try await client.deleteConversation(
conversationId: "test-conversation-id",
agentId: "76710f1b-8231-42e5-b0d1-f43aac618e15"
){
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Required ACL:
logsAuthorizations
Response
Successful Response.
Last modified on October 12, 2026
Was this page helpful?