> ## Documentation Index
> Fetch the complete documentation index at: https://docs.replyke.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete Conversation

> Delete a group or space conversation and all its messages

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

<ParamField path="conversationId" type="string" required>
  The ID of the conversation to delete.
</ParamField>

## Response

```json theme={null}
{ "message": "Conversation deleted." }
```

## Error Responses

<AccordionGroup>
  <Accordion title="Not Found — 404">
    ```json theme={null}
    { "error": "Conversation not found.", "code": "chat/not-found" }
    ```
  </Accordion>

  <Accordion title="Cannot Delete DM — 400 Bad Request">
    ```json theme={null}
    { "error": "Direct conversations cannot be deleted.", "code": "chat/cannot-delete-dm" }
    ```
  </Accordion>

  <Accordion title="Forbidden (group) — 403">
    ```json theme={null}
    { "error": "Only group admins can delete this conversation.", "code": "chat/not-a-member" }
    ```
  </Accordion>

  <Accordion title="Forbidden (space) — 403">
    ```json theme={null}
    { "error": "Only space admins can delete the space conversation.", "code": "chat/not-a-member" }
    ```
  </Accordion>
</AccordionGroup>
