v1
Double column
API
CLI
JS Client

Domains /

Delete subdomain

Removes a subdomain from a domain.

Required permission

Account > Subdomains > General > Update

Path parameters

    • domain

      string required
      Name of the domain
    • subdomain

      string required
      Name of the subdomain

Response body

  • {object}
    Response object.
    • data

      {object} required
      Result data.
    API
    CLI
    JS Client

    DELETE /v1/domains/{domain}/subdomains/{subdomain}

    Example response

    200 OK

    The operation was performed successfully.

    JSON

    {
      "data": {}
    }

    Example response

    400 Bad Request

    The default (empty) subdomain cannot be deleted.

    Example response

    404 Not Found

    The subdomain does not exist.

    © 2024 Northflank Ltd. All rights reserved.