---
search:
  tags:
    - Medicines
    - DELETE
seo:
  description: >-
    Admin, inventory manager, or branch manager. Clears the active flag…
    Reference for the DELETE /api/v1/medicines/{medicineId} endpoint in the
    PharmaFlow API.
sidebar:
  label: Deactivate a medicine
  badge: DELETE
title: Deactivate a medicine
type: openapi-operation
---
Admin, inventory manager, or branch manager. Clears the active flag instead of the row. Batches and past sales point at it, so it is hidden from the catalogue and refused on read.

`DELETE /api/v1/medicines/{medicineId}`

**Responses**

- `204` — Medicine deactivated
- `401` — Not authenticated
- `403` — Caller is not an admin, inventory manager, or branch manager
- `404` — Medicine not found
