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

# Remove Panels

> Remove blood test panels from an appointment

Remove one or more blood test panels from an existing appointment. This deletes the planned test snapshots associated with the specified panels.

<Warning>
  Panels cannot be removed after you call [Confirm Blood
  Draw](/api/appointments/confirm-blood-draw). Attempting to remove panels from a confirmed
  appointment returns `409 Conflict`.
</Warning>

## Request

### Path parameters

<ParamField path="id" type="string" required>
  Unique identifier (UUID) of the appointment to remove panels from.
</ParamField>

### Body parameters

<ParamField body="panel_ids" type="string[]" required>
  Array of panel UUIDs to remove from the appointment. Must contain at least one item. All panels
  must currently be associated with the appointment.
</ParamField>

## Response

On success, the API returns `200 OK` confirming the panels have been removed.

<ResponseField name="success" type="boolean">
  `true` when the panels have been successfully removed from the appointment.
</ResponseField>

## Error responses

| Status | Description                                                                           |
| ------ | ------------------------------------------------------------------------------------- |
| `400`  | Validation error — e.g., `panel_ids` is empty or contains an invalid UUID.            |
| `403`  | Forbidden — your API key does not have access to this operation.                      |
| `404`  | Appointment not found, or one or more panels are not associated with the appointment. |
| `409`  | Conflict — panels cannot be removed after the blood draw has been confirmed.          |
| `500`  | Internal server error.                                                                |

<RequestExample>
  ```bash cURL theme={null}
  curl --request DELETE \
    --url https://anivahealth.com/api/v1/appointments/c9f3e2a1-7d6b-4c5e-b3a2-1f0e9d8c7b6a/panels \
    --header 'x-api-key: YOUR_API_KEY' \
    --header 'Content-Type: application/json' \
    --data '{
      "panel_ids": [
        "d4e5f6a7-b8c9-4d1e-a2f3-b4c5d6e7f8a9"
      ]
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "success": true
  }
  ```

  ```json 409 theme={null}
  {
    "error": "Panels cannot be removed after blood draw has been confirmed"
  }
  ```

  ```json 404 theme={null}
  {
    "error": "Panels not associated with this appointment: d4e5f6a7-b8c9-4d1e-a2f3-b4c5d6e7f8a9"
  }
  ```
</ResponseExample>
