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

# Bulk delete notification channels

> Delete up to 30 notification channels for the organization in one request. The whole batch is deleted atomically — if any channel is not found, is still used by an alert or a monitor, or the caller cannot delete it, no channel is deleted. The IDs are supplied in the request body.



## OpenAPI

````yaml /astro/api/v-1-labs/openapi.yaml delete /organizations/{organizationId}/notification-channels
openapi: 3.0.3
info:
  contact: {}
  description: Astro Labs API - Experimental endpoints for preview features
  title: Astro Labs API
  version: v1
servers:
  - url: https://api.astronomer.io/labs/v1
security:
  - JWT: []
tags:
  - description: >-
      Canned-data placeholder used to exercise the labs epoch versioning
      surface. Real labs endpoints register their own tags.
    name: Example
  - name: allowed-ip-address-range
    x-group: Allowed IP Address Range
  - name: notification-channels
    x-group: Notification Channels
paths:
  /organizations/{organizationId}/notification-channels:
    delete:
      tags:
        - notification-channels
      summary: Bulk delete notification channels
      description: >-
        Delete up to 30 notification channels for the organization in one
        request. The whole batch is deleted atomically — if any channel is not
        found, is still used by an alert or a monitor, or the caller cannot
        delete it, no channel is deleted. The IDs are supplied in the request
        body.
      operationId: LabsDeleteNotificationChannels
      parameters:
        - description: The ID of the Organization the notification channels belong to.
          in: path
          name: organizationId
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BulkDeleteNotificationChannelsRequest'
        description: >-
          The request body containing the list of notification channel IDs to
          delete.
        required: true
        x-originalParamName: body
      responses:
        '204':
          description: ''
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Bad Request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Not Found
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Internal Server Error
      security:
        - JWT: []
components:
  schemas:
    BulkDeleteNotificationChannelsRequest:
      properties:
        notificationChannelIds:
          description: >-
            The IDs of the notification channels to delete. At most 30 per
            request.
          items:
            type: string
          maxItems: 30
          minItems: 1
          type: array
          uniqueItems: true
      required:
        - notificationChannelIds
      type: object
    Error:
      properties:
        fieldErrors:
          description: >-
            FieldErrors carries one entry per failed request-validation
            constraint. Only present on 400 responses caused by request
            binding/validation.
          items:
            $ref: '#/components/schemas/FieldValidationError'
          type: array
        message:
          type: string
        requestId:
          type: string
        statusCode:
          maximum: 600
          minimum: 400
          type: integer
      required:
        - message
        - requestId
        - statusCode
      type: object
    FieldValidationError:
      properties:
        code:
          type: string
        field:
          type: string
        message:
          type: string
      required:
        - code
        - field
        - message
      type: object
  securitySchemes:
    JWT:
      scheme: bearer
      type: http

````