# Remove domain connection requests

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v2/domains/connection-requests:
    delete:
      summary: Remove domain connection requests
      deprecated: false
      description: Remove a domain connection request which is pending.
      tags:
        - domains
      parameters:
        - name: x-auth-zapmail
          in: header
          description: ''
          required: true
          example: ''
          schema:
            type: string
        - name: x-workspace-key
          in: header
          description: ''
          required: false
          example: ''
          schema:
            type: string
        - name: x-service-provider
          in: header
          description: ''
          required: false
          example: ''
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                domainNames:
                  type: array
                  items:
                    type: string
                  description: Domains to remove connection request of.
                cloudflareCredentialsId:
                  type: string
                  description: Cloudflare credential id associated to the target domains.
                status:
                  type: array
                  items:
                    type: string
                  description: Status of the target domain.
                contains:
                  type: string
                  description: >-
                    Search filter of the target domain with the specified
                    substring
              required:
                - domainNames
              x-apidog-orders:
                - domainNames
                - cloudflareCredentialsId
                - status
                - contains
            example:
              domainNames:
                - company.com
              cloudflareCredentialsId: 05F5EB8E-A661-4C33-9A9A-245066DB8858
              status: []
              contains: ''
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                  message:
                    type: string
                  data:
                    type: 'null'
                required:
                  - status
                  - message
                  - data
                x-apidog-orders:
                  - status
                  - message
                  - data
          headers: {}
          x-apidog-name: Success
      security: []
      x-apidog-folder: domains
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/797058/apis/api-18247913-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: https://api.zapmail.ai/api
    description: Prod Env
security: []

```
