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

# Remove Global Alert

> Removes a global alert from a patient chart.

### Example Request

```bash theme={null}
curl -X DELETE https://api.usecobalt.com/v1/patients/81792/global-alerts/141004 \
-H 'client_id: ci_live_198908HJDKJSH98789OHKJL' \
-H 'client_secret: cs_live_9827hofdsklOYYHJLJh' \
-H 'access_token: 493JKLHIU98789hLKH9HHJH'
```

### Example Response

```json theme={null}
{
  "success": true,
  "message": "Global alert processing. A webhook event will be sent upon completion.",
  "job_id": 12345
}
```

You'll receive `global_alert.deleted` with `patient_mrn` and `emr_alert_id`, or `global_alert.delete_failed`. See [Operation Events](https://docs.usecobalt.com/docs/webhooks/operation-events.md).


## OpenAPI

````yaml DELETE /patients/{patient_id}/global-alerts/{emr_alert_id}
openapi: 3.1.0
info:
  title: Cobalt API
  version: 1.0.1
  description: API for interacting with Cobalt's EHR integration services
servers:
  - url: https://api.usecobalt.com/v1
    description: Production
security:
  - ClientCredentials: []
    ClientSecret: []
    AccessToken: []
paths:
  /patients/{patient_id}/global-alerts/{emr_alert_id}:
    delete:
      tags:
        - Global Alerts
      summary: Remove a global alert
      description: Queues removal of a global alert from the patient chart.
      operationId: deleteGlobalAlert
      parameters:
        - name: patient_id
          in: path
          description: >-
            Cobalt patient ID (`id` from the patient endpoints) or the patient
            MRN.
          schema:
            type: string
            example: '12345'
          required: true
        - name: emr_alert_id
          in: path
          description: >-
            EHR id of the alert on the chart:
            `alerts.global_alerts[].emr_alert_id` from POST /v1/patients/fetch.
          schema:
            type: string
            example: '141004'
          required: true
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                callback_urls:
                  type: array
                  items:
                    type: string
                  x-supported-emrs:
                    - eClinicalWorks
                  description: >-
                    URLs to receive the completion webhook, in addition to the
                    account webhook.
                  example:
                    - https://example.com/webhooks/cobalt
                expires_at:
                  type:
                    - string
                    - 'null'
                  format: date-time
                  x-supported-emrs:
                    - eClinicalWorks
                  description: >-
                    Optional ISO 8601 timestamp with an explicit timezone
                    offset, in the future when submitted. Cobalt starts no new
                    operation attempt after this deadline and reports
                    reasons[].code EXPIRED. An attempt already in progress,
                    including write reconciliation, may finish after it.
                  example: '2027-06-15T14:30:00Z'
      responses:
        '200':
          description: Global alert change queued for processing
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  message:
                    type: string
                    example: >-
                      Global alert processing. A webhook event will be sent upon
                      completion.
                  job_id:
                    type: integer
                    example: 12345
                required:
                  - success
                  - message
                  - job_id
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/InternalServerError'
components:
  responses:
    BadRequest:
      description: Bad request — missing or invalid parameters
      content:
        application/json:
          schema:
            type: object
            properties:
              success:
                type: boolean
                enum:
                  - false
                example: false
              message:
                type: string
                example: Request could not be completed.
            required:
              - success
              - message
          example:
            success: false
            message: Bad request — missing or invalid parameters
    Unauthorized:
      description: Unauthorized — missing or invalid credentials
      content:
        application/json:
          schema:
            type: object
            properties:
              success:
                type: boolean
                enum:
                  - false
                example: false
              message:
                type: string
                example: Request could not be completed.
            required:
              - success
              - message
          example:
            success: false
            message: Unauthorized — missing or invalid credentials
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            type: object
            properties:
              success:
                type: boolean
                enum:
                  - false
                example: false
              message:
                type: string
                example: Request could not be completed.
            required:
              - success
              - message
          example:
            success: false
            message: Resource not found
    InternalServerError:
      description: Internal server error
      content:
        application/json:
          schema:
            type: object
            properties:
              success:
                type: boolean
                enum:
                  - false
                example: false
              message:
                type: string
                example: Request could not be completed.
            required:
              - success
              - message
          example:
            success: false
            message: Internal server error
  securitySchemes:
    ClientCredentials:
      type: apiKey
      in: header
      name: client_id
    ClientSecret:
      type: apiKey
      in: header
      name: client_secret
    AccessToken:
      type: apiKey
      in: header
      name: access_token

````

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