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

# deleteSpacesCollection

> Delete a Spaces Collection. The Collection must be empty — a Collection that
still contains active Spaces cannot be deleted; move or archive those Spaces first.

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



**mutation** `deleteSpacesCollection(input: DeleteSpacesCollectionInput!): DeleteSpacesCollectionPayload`

## Arguments

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

Parameters for DeleteSpacesCollection

## Returns

`DeleteSpacesCollectionPayload`

**`clientMutationId`**: `String`

A unique identifier for the client performing the mutation.

---

**`deletedSpacesCollectionId`**: `ID`

GlobalID of the Spaces Collection that was deleted.

---

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

## Examples

```graphql Mutation
mutation DeleteSpacesCollection($input: DeleteSpacesCollectionInput!) {
  deleteSpacesCollection(input: $input) {
    clientMutationId
    deletedSpacesCollectionId
    errors
  }
}
```

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

```json Response
{
  "data": {
    "deleteSpacesCollection": {
      "clientMutationId": "string",
      "deletedSpacesCollectionId": "id",
      "errors": [
        "string"
      ]
    }
  }
}
```


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