> ## Documentation Index
> Fetch the complete documentation index at: https://docs.usesendly.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete Domain

> Delete a domain

## Description

Delete a domain from your account. You won't be able to send from this domain after deletion.

## Parameters

<ParamField path="identifier" type="string" required>
  Domain ID or name.
</ParamField>

## Response

<ResponseField name="id" type="string">
  ID of the deleted domain.
</ResponseField>

## Examples

<CodeGroup>
  ```bash cURL theme={null}
  curl -X DELETE https://api.usesendly.app/v1/domains/mail.yourdomain.com \
    -H "Authorization: Bearer se_your_api_key"
  ```

  ```javascript SDK theme={null}
  const result = await client.domains.delete('mail.yourdomain.com')

  console.log(`Domain deleted: ${result.id}`)
  ```

  ```javascript SMTP theme={null}
  import { Sendly } from '@sendlyapp/sdk'

  const client = new Sendly()
  await client.domains.delete('mail.yourdomain.com')
  ```
</CodeGroup>

## Important Notes

* ⚠️ This action cannot be undone
* You cannot send from this domain after deletion
* DNS records may remain in your provider (remove manually)

***

Need help? Contact [support@usesendly.app](mailto:support@usesendly.app)
