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

# deleteCourse

> Delete a course. A course is a Space, so deleting it also removes its
coursework, posts, and memberships. This cannot be undone.

**Required scope:** `host:write:network_spaces`



**mutation** `deleteCourse(input: DeleteCourseInput!): DeleteCoursePayload`

## Arguments

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

Parameters for DeleteCourse

## Returns

`DeleteCoursePayload`

**`clientMutationId`**: `String`

A unique identifier for the client performing the mutation.

---

**`deletedCourseId`**: `ID`

GlobalID of the course that was deleted.

---

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

## Examples

```graphql Mutation
mutation DeleteCourse($input: DeleteCourseInput!) {
  deleteCourse(input: $input) {
    clientMutationId
    deletedCourseId
    errors
  }
}
```

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

```json Response
{
  "data": {
    "deleteCourse": {
      "clientMutationId": "string",
      "deletedCourseId": "id",
      "errors": [
        "string"
      ]
    }
  }
}
```


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