Delete Sessions
DELETE/sessions
Deletes all sessions matching the specified filters.
Can filter by agent_id and/or customer_id. Will delete all sessions if no filters are provided.
Request
Query Parameters
agent_id object
customer_id object
Responses
- 204
- 422
All matching sessions successfully deleted
Validation error in request parameters
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Delete, "https://www.parlant.io/sessions");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());