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

# deleteMessage

> Delete a message from a space chat



**mutation** `deleteMessage(input: DeleteMessageInput!): DeleteMessagePayload`

## Arguments

**`input`**: `DeleteMessageInput!` (required)

Parameters for DeleteMessage

## Returns

`DeleteMessagePayload`

**`clientMutationId`**: `String`

A unique identifier for the client performing the mutation.

---

**`deletedId`**: `ID`

GlobalID of the deleted message

---

**`errors`**: `[String!]!`

## Examples

```graphql Mutation
mutation DeleteMessage($input: DeleteMessageInput!) {
  deleteMessage(input: $input) {
    clientMutationId
    deletedId
    errors
  }
}
```

```json Variables
{
  "input": {
    "messageId": "id"
  }
}
```

```json Response
{
  "data": {
    "deleteMessage": {
      "clientMutationId": "string",
      "deletedId": "id",
      "errors": [
        "string"
      ]
    }
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.