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

# Delete domain redirect

> **Remove the redirect rule for this domain**

Deletes the redirect from Cloudflare and removes the configuration record.
Cloudflare cleanup failures are logged but do not prevent the record from
being removed.

## Example

```python
import requests

domain_id = "550e8400-e29b-41d4-a716-446655440000"

response = requests.delete(
    f"https://api.coldsend.io/api/public/v1/domains/{domain_id}/redirect",
    headers={"X-API-Key": "your-api-key"}
)
print(response.json())
```



## OpenAPI

````yaml /public_openapi.json delete /api/public/v1/domains/{domain_id}/redirect
openapi: 3.0.3
info:
  title: ColdSend Public API
  description: >-
    Programmatic access to ColdSend for managing cold email campaigns and sender
    accounts.
  version: 1.0.0
  contact:
    name: ColdSend Support
    email: support@coldsend.pro
    url: https://coldsend.pro
servers:
  - url: https://api.coldsend.pro
    description: Production
security:
  - ApiKeyAuth: []
paths:
  /api/public/v1/domains/{domain_id}/redirect:
    delete:
      tags:
        - Domains
      summary: Delete domain redirect
      description: >-
        **Remove the redirect rule for this domain**


        Deletes the redirect from Cloudflare and removes the configuration
        record.

        Cloudflare cleanup failures are logged but do not prevent the record
        from

        being removed.


        ## Example


        ```python

        import requests


        domain_id = "550e8400-e29b-41d4-a716-446655440000"


        response = requests.delete(
            f"https://api.coldsend.io/api/public/v1/domains/{domain_id}/redirect",
            headers={"X-API-Key": "your-api-key"}
        )

        print(response.json())

        ```
      operationId: delete_domain_redirect_api_public_v1_domains__domain_id__redirect_delete
      parameters:
        - name: domain_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Domain Id
      responses:
        '200':
          description: Redirect deleted successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DomainRedirectDeleteResponse'
        '401':
          description: Missing or invalid API key
        '403':
          description: Insufficient permissions - requires 'domains:delete' scope
        '404':
          description: Domain or redirect not found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    DomainRedirectDeleteResponse:
      properties:
        success:
          type: boolean
          title: Success
          default: true
        message:
          type: string
          title: Message
        domain_id:
          type: string
          format: uuid
          title: Domain Id
        source_domain:
          type: string
          title: Source Domain
      type: object
      required:
        - message
        - domain_id
        - source_domain
      title: DomainRedirectDeleteResponse
      description: Response for domain redirect deletion.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key with format cs_live_xxx

````