Delete a thread.
delete(
self,
thread_id: str,
*,
headers: Mapping[str, str] | None = None,
params: QueryParamTypes | None = None
) -> Noneclient = get_client(url="http://localhost2024)
await client.threads.delete(
thread_id="my_thread_id"
)| Name | Type | Description |
|---|---|---|
thread_id* | str | The ID of the thread to delete. |
headers | Mapping[str, str] | None | Default: NoneOptional custom headers to include with the request. |
params | QueryParamTypes | None | Default: NoneOptional query parameters to include with the request. |