Skip to content

Delete policy version

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

Delete policy version in Varman. Create, version, publish, export, map, and improve compliance policies with AI-assisted drafting and approval workflows.

id
required
string

Example

pol_abc123def456

Policy ID

versionId
required
string

Example

pv_abc123def456

Policy version ID

X-Organization-Id
string

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

Version deleted

Media typeapplication/json
object
deletedVersion
number

Example generated

{
"deletedVersion": 1
}

Invalid request

Media typeapplication/json
object
message
string

Example

{
"message": "Invalid request"
}

Unauthorized

Media typeapplication/json
object
message
string

Example

{
"message": "Unauthorized"
}

Resource not found

Media typeapplication/json
object
message
string

Example

{
"message": "Resource not found"
}