For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Contact usJoin the Discord
ManualAPI GuideAPI Reference
  • Overview
    • API Reference
    • Client libraries
  • API Reference
      • POSTInitiate Async Chat Stream
      • GETObserve Async Chat Stream Events
      • GETGet Async Chat Stream Status
      • POSTCancel Async Chat Stream
      • DELDelete Async Chat Stream
LogoLogo
Contact usJoin the Discord
API ReferenceAsync Messages

Delete Async Chat Stream

DELETE
https://host.com/v1/messages/async/:message_id/delete
DELETE
/v1/messages/async/:message_id/delete
$curl -X DELETE https://host.com/v1/messages/async/message_id/delete
1{
2 "key": "value"
3}
Delete an asynchronous chat stream and clean up all associated resources. This endpoint permanently removes a chat stream from storage and cleans up all associated resources including: - Stream metadata and status information - Cached events and message content - Task references and cancellation tokens Notes: - Stream must exist to be deleted (returns 404 otherwise) - Active streams are automatically cancelled before deletion - No response body returned on successful deletion (204 status) - Use status endpoint to verify deletion if needed
Was this page helpful?
Previous

Generate embeddings for text input

Next
Built with

Delete an asynchronous chat stream and clean up all associated resources.

This endpoint permanently removes a chat stream from storage and cleans up all associated resources including:

  • Stream metadata and status information
  • Cached events and message content
  • Task references and cancellation tokens

Notes:

  • Stream must exist to be deleted (returns 404 otherwise)
  • Active streams are automatically cancelled before deletion
  • No response body returned on successful deletion (204 status)
  • Use status endpoint to verify deletion if needed

Path parameters

message_idstringRequired
Message ID of the asynchronous chat stream to delete.

Response

This endpoint returns any.

Errors

401
Unauthorized
404
Not Found
422
Unprocessable Entity