Skip to main content
Use this endpoint to permanently remove a prescription record. For audit trail purposes, consider setting the prescription’s status to cancelled instead. Returns 204 No Content on success.

Request

DELETE https://api.clinikapi.com/v1/prescriptions/{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 prescription to delete.

Response

Returns 204 No Content with an empty body on success.

Examples

curl

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

TypeScript SDK

import { ClinikAPI } from "@clinikapi/sdk";

const client = new ClinikAPI({ apiKey: "clk_live_abc123" });

await client.prescriptions.delete("rx_mno678");