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

# Delete custom domains of several environments

> Delete custom domains of several environments of the organization at once: all of them, or none.
Each item deletes every row of the domain name in its environment, for every service routing it, with their routes.
The caller needs the permission to manage each environment. An environment of another organization refuses the whole call with a 403, and nothing is deleted.
Nothing is deployed: redeploy the services listed in `impacted_services` to apply the change.




## OpenAPI

````yaml /api-reference/openapi.yaml post /organization/{organizationId}/customDomain/bulkDelete
openapi: 3.0.0
info:
  version: 1.0.4
  title: Qovery API
  description: >
    - Qovery is the fastest way to deploy your full-stack apps on any Cloud
    provider.

    - ℹ️ The API is stable and still in development.
  contact:
    name: Qovery Product Team
    url: https://www.qovery.com
    email: support+api+documentation@qovery.com
  x-logo:
    url: https://console.qovery.com/assets/logos/logo-white.svg
    altText: Qovery
servers:
  - url: https://api.qovery.com
security:
  - bearerAuth: []
  - ApiKeyAuth: []
tags:
  - name: Account
  - name: Account Info
  - name: IPs
  - name: Alert Receivers
  - name: Alert Rules
  - name: Admin
  - name: ArgoCD
  - name: Agentic Workflows
  - name: Application
  - name: Application Actions
  - name: Application Build Analysis
  - name: Application Configuration
  - name: Application Database
  - name: Application Deployment Restriction
  - name: Application Deployment History
  - name: Application Environment Variable
  - name: Application Logs
  - name: Application Main Calls
  - name: Application Secret
  - name: Application Annotations Group
  - name: Applications
  - name: AutoscalingPolicy
  - name: Container
  - name: Container Actions
  - name: Container Configuration
  - name: Container Database
  - name: Container Deployment History
  - name: Container Environment Variable
  - name: Container Logs
  - name: Container Main Calls
  - name: Container Registry
  - name: Container Secret
  - name: Container Annotations Group
  - name: Containers
  - name: Deployment Stage Main Calls
  - name: Job
  - name: Job Actions
  - name: Job Build Analysis
  - name: Job Configuration
  - name: Job Database
  - name: Job Deployment Restriction
  - name: Job Deployment History
  - name: Job Environment Variable
  - name: Job Logs
  - name: Job Main Calls
  - name: Job Registry
  - name: Job Secret
  - name: Job Annotations Group
  - name: Jobs
  - name: KedaTriggerAuthentication
  - name: Helm
  - name: Helm Actions
  - name: Helm Configuration
  - name: Helm Database
  - name: Helm Deployment Restriction
  - name: Helm Deployment History
  - name: Helm Logs
  - name: Helm Main Calls
  - name: Helm Repository
  - name: Helms
  - name: Backups
  - name: Billing
  - name: Blueprint Catalog
  - name: Cloud Provider
  - name: Cloud Provider Credentials
  - name: Clusters
  - name: Cluster Deployment History
  - name: Cluster Operator
  - name: Platform Configuration
  - name: Custom Domain
  - name: Container Custom Domain
  - name: LLM Providers
  - name: MCP Servers
  - name: Agent Activity
    description: >-
      What members' coding agents did on Qovery, linked to the skills they
      loaded: skill loads, API calls made from a Qovery skill, Qovery MCP server
      tool calls and policy denials. Built only from what Qovery already
      records. It returns no prompt text and no request content.
  - name: Skill Presets
    description: >-
      A skill preset is how an organization tells its members' coding agents to
      use Qovery: which Qovery skills apply, team instructions on top of them,
      and skills of the organization's own. Admins manage presets and assign
      each one to the organization, to roles or to members. Any member can read
      the preset that applies to them, which is what the agent's Qovery loader
      skill fetches. Every saved preset is inspected for content that could turn
      a member's agent against them, and every create, edit, delete and skill
      load is recorded in the audit log.
  - name: Database
  - name: Database Actions
  - name: Database Application
  - name: Database Container
  - name: Database Deployment History
  - name: Database Main Calls
  - name: Database Annotations Group
  - name: Databases
  - name: Environment
  - name: Environment Actions
  - name: Environment Custom Domain
  - name: Environment Deployment History
  - name: Environment Deployment Rule
  - name: Environment Logs
  - name: Environment Main Calls
  - name: Environment Secret
  - name: Environment Variable
  - name: Environments
  - name: Git
  - name: Github App
  - name: Git repositories
  - name: Members
  - name: Organization
  - name: Organization Account Git Repositories
  - name: Organization Cluster Lock
  - name: Organization Main Calls
  - name: Organization Custom Role
  - name: Organization Custom Domain
  - name: Organization Event
  - name: Organization Api Token
  - name: Organization Policy Api Token
  - name: Organization Webhook
  - name: Organization Annotations Group
  - name: Organization Labels Group
  - name: Organization Enterprise Connection
  - name: Project
  - name: Project Deployment Rule
  - name: Project Environment Variable
  - name: Project Main Calls
  - name: Project Secret
  - name: Projects
  - name: Referral & Rewards
  - name: Secret Manager Access
  - name: Terraforms
  - name: Terraform Main Calls
  - name: Terraform Resources
  - name: Terraform Deployment History
  - name: Terraform Deployment Restriction
  - name: Container Registries
  - name: Helm Repositories
  - name: User Sign Up
  - name: Variable Main Calls
  - name: Helm Custom Domain
  - name: Lifecycle Template Main Calls
  - name: Blueprint Main Calls
  - name: Service Main Calls
paths:
  /organization/{organizationId}/customDomain/bulkDelete:
    post:
      tags:
        - Organization Custom Domain
      summary: Delete custom domains of several environments
      description: >
        Delete custom domains of several environments of the organization at
        once: all of them, or none.

        Each item deletes every row of the domain name in its environment, for
        every service routing it, with their routes.

        The caller needs the permission to manage each environment. An
        environment of another organization refuses the whole call with a 403,
        and nothing is deleted.

        Nothing is deployed: redeploy the services listed in `impacted_services`
        to apply the change.
      operationId: bulkDeleteOrganizationCustomDomain
      parameters:
        - $ref: '#/components/parameters/organizationId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: array
              maxItems: 100
              items:
                $ref: '#/components/schemas/CustomDomainBulkDeleteItemRequest'
      responses:
        '200':
          description: The domains are deleted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomDomainDeletionResponse'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
components:
  parameters:
    organizationId:
      name: organizationId
      in: path
      description: Organization ID
      required: true
      schema:
        type: string
        format: uuid
  schemas:
    CustomDomainBulkDeleteItemRequest:
      type: object
      description: A domain name to delete in an environment.
      required:
        - environment_id
        - domain
      properties:
        environment_id:
          type: string
          format: uuid
          description: >-
            Id of the environment of the domain. It must belong to the
            organization of the call.
        domain:
          type: string
          description: >-
            The domain name. Every row of this name in the environment is
            deleted.
          example: my.domain.tld
    CustomDomainDeletionResponse:
      type: object
      required:
        - impacted_services
      properties:
        impacted_services:
          type: array
          description: >-
            The services that lost a custom domain. They need a redeploy to stop
            serving it.
          items:
            $ref: '#/components/schemas/ImpactedServiceResponse'
    ImpactedServiceResponse:
      type: object
      description: >-
        A service a custom domain write changed. Nothing is deployed; the
        service needs a redeploy to serve the change.
      required:
        - id
        - type
      properties:
        id:
          type: string
          format: uuid
        type:
          $ref: '#/components/schemas/ServiceTypeEnum'
    ServiceTypeEnum:
      type: string
      x-stoplight:
        id: d66063cd29913
      description: type of the service (application, database, job, ...)
      enum:
        - APPLICATION
        - DATABASE
        - CONTAINER
        - JOB
        - HELM
        - TERRAFORM
        - ARGOCD_APP
        - AGENTIC_WORKFLOW
  responses:
    '400':
      description: Bad request
    '401':
      description: Access token is missing or invalid
    '403':
      description: Access forbidden
    '404':
      description: Resource not found
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        JWT tokens should be used with OIDC account (human to machine). JWT
        tokens used by the Qovery console to communicate with the API have a
        TTL. Curl Example ' curl https://console.qovery.com/organization -H
        "Authorization: Bearer $qovery_token" '
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: >-
        Token API are generated by Qovery to manage machine to machine
        interaction and do not have a TTL. Curl Example ' curl
        https://console.qovery.com/organization -H "Authorization: Token
        $qovery_token" '

````

## Related topics

- [Delete a custom domain of several services](https://www.qovery.com/docs/api-reference/environment-custom-domain/delete-a-custom-domain-of-several-services.md)
- [Delete a Custom Domain](https://www.qovery.com/docs/api-reference/application-custom-domain/delete-a-custom-domain.md)
- [List environment custom domains](https://www.qovery.com/docs/api-reference/environment-custom-domain/list-environment-custom-domains.md)


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