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

# deleteCoursework

> Delete a coursework item

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



**mutation** `deleteCoursework(input: DeleteCourseworkInput!): DeleteCourseworkPayload`

## Arguments

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

Parameters for DeleteCoursework

## Returns

`DeleteCourseworkPayload`

**`clientMutationId`**: `String`

A unique identifier for the client performing the mutation.

---

**`deletedId`**: `ID`

---

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

## Examples

```graphql Mutation
mutation DeleteCoursework($input: DeleteCourseworkInput!) {
  deleteCoursework(input: $input) {
    clientMutationId
    deletedId
    errors
  }
}
```

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

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


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