> ## 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.

# deletePost

> Delete a post or article

**Required scopes:** `write:posts`, `host:write:network_posts` (any one)



**mutation** `deletePost(input: DeletePostInput!): DeletePostPayload`

## Arguments

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

Parameters for DeletePost

## Returns

`DeletePostPayload`

**`clientMutationId`**: `String`

A unique identifier for the client performing the mutation.

---

**`deletedId`**: `ID`

---

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

## Examples

```graphql Mutation
mutation DeletePost($input: DeletePostInput!) {
  deletePost(input: $input) {
    clientMutationId
    deletedId
    errors
  }
}
```

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

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


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