---
title: "Delete policy version"
method: DELETE
path: "/v1/policies/{id}/versions/{versionId}"
tags: ["Policies"]
---

# Delete policy version

`DELETE /v1/policies/{id}/versions/{versionId}`

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

## Path parameters

- `id` string, required
- `versionId` string, required

## Headers

- `X-Organization-Id` string

## Response `200`

Version deleted

- object
  - `deletedVersion` number

## Other responses

- `400` — Invalid request
- `401` — Unauthorized
- `404` — Resource not found

## Changes

- **2026-06-04** `d7d0199d846f` — 1 info
  - the endpoint scheme security `oauth2` was removed from the API
- **2026-05-29** `5382c53ab431` — 1 info
  - the endpoint scheme security `oauth2` was added to the API

[Change history](https://skmtc.dev/trycompai/apis/comp-ai-api/changes/v1/policies/:id/versions/:versionId/delete.md)

---

[API](https://skmtc.dev/trycompai/apis/comp-ai-api.md) · [All operations](https://skmtc.dev/trycompai/apis/comp-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/trycompai/comp-ai-api/revisions/726b9523fb22/schema)
