Skip to content
Last updated

Delete all threads belonging to the authenticated user. Optionally scoped to a specific organization.

DELETEhttps://api.aitronos.com/v1/threads

Soft-deletes all threads for the authenticated user. If organization_id is provided, only threads within that organization are deleted. If omitted, threads across all organizations are deleted.

Query Parameters

organization_id string optional

Scope deletion to a specific organization. Must start with org_. If omitted, all threads across all organizations are deleted.


Returns

Returns the count of deleted threads and a confirmation message.

cURL
# Delete all threads (all organizations)
curl -X DELETE "https://api.aitronos.com/v1/threads" \
  -H "X-API-Key: $FREDDY_API_KEY"

# Delete all threads in a specific organization
curl -X DELETE "https://api.aitronos.com/v1/threads?organization_id=org_abc123" \
  -H "X-API-Key: $FREDDY_API_KEY"