Skip to content

Delete a policy version PDF

DELETE
/v1/policies/{id}/pdf
curl --request DELETE \
--url https://api.varman.io/v1/policies/pol_abc123def456/pdf \
--header 'X-API-Key: <X-API-Key>'

Deletes the PDF from a specific policy version. If no versionId is provided, deletes from the latest draft version. Cannot delete PDFs from published or pending-approval versions.

id
required
string

Example

pol_abc123def456

Policy ID

X-Organization-Id
string

Organization ID (required for session auth, optional for API key auth)

versionId
string

Target version ID. If omitted, targets the latest draft version.