Skip to main content
Use this endpoint to permanently remove a medication from your catalog. The deletion cannot be undone. If you want to stop using a medication without deleting it, consider setting its status to inactive via the update endpoint instead.

Request

DELETE https://api.clinikapi.com/v1/medications/:id

Headers

x-api-key
string
required
Your ClinikAPI secret key (clk_live_* or clk_test_*).

Path parameters

id
string
required
The ID of the medication to delete (e.g. med_abc123).

Response

Returns 204 No Content with an empty body on success.
meta
object
Standard response metadata including requestId, timestamp, and rate-limit fields.

Examples

curl

curl -X DELETE https://api.clinikapi.com/v1/medications/med_abc123 \
  -H "x-api-key: clk_live_abc123"

TypeScript SDK

import { Clinik } from '@clinikapi/sdk';

const clinik = new Clinik(process.env.CLINIKAPI_SECRET_KEY!);

await clinik.medications.delete('med_abc123');