Skip to main content
DELETE
/
:projectId
/
api
/
v7
/
conversations
/
:conversationId
Delete Conversation
curl --request DELETE \
  --url https://api.replyke.com/api/v6/:projectId/api/v7/conversations/:conversationId
Permanently deletes a conversation and all associated messages, members, reactions, and file attachments. This action is irreversible. Direct conversations (type: "direct") cannot be deleted. Authorization:
  • group conversations: caller must be an active admin member.
  • space conversations: caller must have admin role in the parent Space.

Path Parameters

conversationId
string
required
The ID of the conversation to delete.

Response

{ "message": "Conversation deleted." }

Error Responses

{ "error": "Conversation not found.", "code": "chat/not-found" }
{ "error": "Direct conversations cannot be deleted.", "code": "chat/cannot-delete-dm" }
{ "error": "Only group admins can delete this conversation.", "code": "chat/not-a-member" }
{ "error": "Only space admins can delete the space conversation.", "code": "chat/not-a-member" }