---
title: "Delete Retention Policy"
method: DELETE
path: "/retentions/{id}"
tags: ["Retention"]
---

# Delete Retention Policy

`DELETE /retentions/{id}`

Delete Retention Policy, you can reference metadatas API for the policy model. You can check project metadatas to find whether a retention policy is already binded. This method should only be called when retention policy has already binded to project.

## Path parameters

- `id` integer, required

## Headers

- `X-Request-Id` string

## Response `200`

Update Retention Policy successfully.

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `500` — Internal server error

---

[API](https://skmtc.dev/cerit/apis/harbor-api.md) · [All operations](https://skmtc.dev/cerit/apis/harbor-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/cerit/harbor-api/revisions/62d78801f8df/schema)
