---
title: "Delete an allergy"
method: DELETE
path: "/api/2026-01-01/medical-record/allergies/{allergy_id}"
tags: ["Allergies"]
---

# Delete an allergy

`DELETE /api/2026-01-01/medical-record/allergies/{allergy_id}`

## Request

- Base URL: `https://jdpdocsdemo.jane.qa`
- URL: `https://jdpdocsdemo.jane.qa/api/2026-01-01/medical-record/allergies/{allergy_id}`
- Auth: OAuth 2
  - Authorization code: `https://login.id.janeapp.com/realms/jane_partner_sandbox/protocol/openid-connect/auth?response_type=code&resource=https://jdpdocsdemo.jane.qa&prompt=consent`
  - Token URL: `https://login.id.janeapp.com/realms/jane_partner_sandbox/protocol/openid-connect/token` scopes: `allergies:delete`

Archive an allergy by its ID. This is a soft delete: the row is retained as part of the medical record and is not erased, but it no longer appears in the default allergy list or by direct lookup.

## Path parameters

- `allergy_id` string, required

## Response `204`

The allergy was archived

## Other responses

- `401`: Unauthorized
- `403`: Forbidden - insufficient permissions
- `404`: The allergy was not found

## Changes

- **2026-11-03** `01798f613a5e`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/jane/apis/jdp-api/changes/api/2026-01-01/medical-record/allergies/:allergy_id/delete.md)

---

[API](https://skmtc.dev/jane/apis/jdp-api.md) - [All operations](https://skmtc.dev/jane/apis/jdp-api/llms.txt) - [OpenAPI document](https://skmtc.dev/jane/apis/jdp-api/revisions/01798f613a5e?raw)
