---
title: "Deactivate retention rule"
method: DELETE
path: "/v1/private/retention/rules/{ruleId}"
tags: ["Retention Rules"]
---

# Deactivate retention rule

`DELETE /v1/private/retention/rules/{ruleId}`

Soft-deactivate a retention rule (sets enabled=false). Rules are never hard-deleted for audit trail.

## Path parameters

- `ruleId` string, uuid, required

## Response `204`

No content

## Other responses

- `404` — Retention rule not found

---

[API](https://skmtc.net/comet-ml/apis/opik-rest-api.md) · [All operations](https://skmtc.net/comet-ml/apis/opik-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/comet-ml/opik-rest-api/versions/4ed2fbc97cc3/schema)
