Start a conversation

Delete a Forum, Blog, or a Knowledge Base Article

In this guide, you will learn how to delete any message on any board. The message can be any of the following types:

  • Forum
  • Blog Article
  • Knowledge Base Article

Requirements

You must have either of the permissions set to Grant by the Administrator.

  • Delete own post – Deletes the logged-in user's messages.
  • Delete any post – Deletes any message from any board.
Delete any post permission

Basic Steps

  1. Open any board where you want to delete a forum, blog article, or knowledge base (KB) article.
  2. Identify the ID of the forum, blog article, or KB article you want to delete.
  3. Make sure that you have the necessary permission to delete it.
  4. Make a GraphQL Request to delete a forum, blog article, or KB article.

Example

Delete any Message

In this example, we are going to delete a Sling Hockey forum from the Games Club board.

  1. Sign in to your community.
  2. Go to the Games Club board.
  3. Make a note of the ID of the Sling Hockey forum.
  4. Make sure that you have the Delete any post permission.
  5. Make a GraphQL DELETE request using the message ID.

The ID of the message is 16.

Here is an example of the GraphQL request.

mutation DeleteMessage($id: ID!) {
  deleteMessage(id: $id) {
    result
    __typename
  }
}

The mutation here initiates a DeleteMessage function using information passed through GraphQL variables. Here is an example to delete a message.

{
  "id": "message:16"
}

Here is the response to the GraphQL request.

{
  "data": {
    "deleteMessage": {
      "result": true,
      "__typename": "DeleteMessageResponse"
    }
  }
}
Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. ATLAS

  2. Posted
  3. Updated

Comments