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

# Delete a community

Opigno Enterprise API provides the `deleteCommunity` mutation to remove the community, all related posts, comments, invitations and memberships.
The community can be deleted only by the owner or a user associated wit the `ADMINISTRATOR` scope.

`deleteCommunity` mutation accepts only one required argument `communityId` that represents the ID of the community that should be deleted.
After the mutation execution the community will not be available for any other user on the platform.

<CodeGroup>
  ```filename GraphQL theme={null}
    mutation deleteCommunity {
      deleteCommunity (communityId: 2) {
        errors
        response
      }
    }
  ```

  ```File Query result [expandable] theme={null}
  {
    "data": {
      "deleteCommunity": {
        "errors": [],
        "response": true
      }
    }
  }
  ```
</CodeGroup>

If the mutation executed without any errors, a boolean value will be returned as a response, indicating the execution status.
