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

# deleteCustomDomain

> Remove the Network's custom domain configuration. Tears down every registered
custom domain and restores the default Mighty domain — not just the domain the ID references

**Required scope:** `host:write:network_integrations`



**mutation** `deleteCustomDomain(input: DeleteCustomDomainInput!): DeleteCustomDomainPayload`

## Arguments

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

Parameters for DeleteCustomDomain

## Returns

`DeleteCustomDomainPayload`

**`clientMutationId`**: `String`

A unique identifier for the client performing the mutation.

---

**`deletedId`**: `ID`

---

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

## Examples

```graphql Mutation
mutation DeleteCustomDomain($input: DeleteCustomDomainInput!) {
  deleteCustomDomain(input: $input) {
    clientMutationId
    deletedId
    errors
  }
}
```

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

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


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