---
title: "Delete All Policy Versions"
method: DELETE
path: "/policies/name/{policy_name}/all-versions"
tags: ["policy_engine"]
---

# Delete All Policy Versions

`DELETE /policies/name/{policy_name}/all-versions`

## Request

- Base URL: `https://api.sea-lion.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.sea-lion.ai/policies/name/{policy_name}/all-versions`
- Auth: API key in header `x-litellm-api-key`

Delete all versions of a policy. Also removes from in-memory registry.

## Path parameters

- `policy_name` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-21** `f2fb14eab3f5`: 4 info
  - api tag `policy_engine` added
  - api tag `Policies` removed
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status

[Operation history](https://skmtc.dev/sea-lion/apis/litellm-api/changes/policies/name/:policy_name/all-versions/delete.md)

---

[API](https://skmtc.dev/sea-lion/apis/litellm-api.md) · [All operations](https://skmtc.dev/sea-lion/apis/litellm-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sea-lion/apis/litellm-api/revisions/1ba9123c189a?raw)
