Delete an assistant
Changed onDelete an AI Assistant by assistant_id.
By default this performs a soft delete: the assistant moves to the Recently Deleted list and stays restorable for 30 days, after which it is permanently deleted automatically. The assistant's versions and TeXML application are preserved during the retention window.
Pass hard_delete=true to skip the retention window and permanently delete the assistant immediately. A hard delete erases the assistant and all of its versions, and deletes its TeXML application unless phone numbers are still assigned to it. It does not delete conversations, recordings, shared tools the assistant referenced, or knowledge-base embeddings.
Deletion fails with 400 if other assistants reference this one through a handoff tool or a conversation-flow edge — remove those references first.
Request
- Base URL: https://api.telnyx.com/v2
- URL: https://api.telnyx.com/v2/ai/assistants/{assistant_id}
- Auth: HTTP bearer
Path parameters
Unique identifier of the assistant.
Query parameters
Permanently delete the assistant immediately instead of soft-deleting it to the Recently Deleted list, where it stays restorable for 30 days.
Response
Successful Response
Changes
- info
added the new optional
queryrequest parameterhard_delete - info
added the non-success response with the status
- info