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

# deleteSpace

> Delete a Space from this Network. This is irreversible — the Space is removed
immediately and its content is torn down asynchronously.

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



**mutation** `deleteSpace(input: DeleteSpaceInput!): DeleteSpacePayload`

## Arguments

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

Parameters for DeleteSpace

## Returns

`DeleteSpacePayload`

**`clientMutationId`**: `String`

A unique identifier for the client performing the mutation.

---

**`deletedId`**: `ID`

---

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

## Examples

```graphql Mutation
mutation DeleteSpace($input: DeleteSpaceInput!) {
  deleteSpace(input: $input) {
    clientMutationId
    deletedId
    errors
  }
}
```

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

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


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