---
title: "Changes to Delete a retention rule"
method: DELETE
path: "/ocs/v2.php/apps/files_retention/api/v1/retentions/{id}"
---

# Changes to Delete a retention rule

`DELETE /ocs/v2.php/apps/files_retention/api/v1/retentions/{id}`

> Every recorded change to this endpoint, newest first.

## Timeline

Changed in 2 of 4 revisions.

- **2025-12-20** `db5a22e1e7d3` — 2 info
- **2025-03-26** `ae08f25fe8aa` — 2 info

## Changes

- **2025-12-20** `db5a22e1e7d3` — 2 info
  - added the non-success response with the status `401`
  - added the non-success response with the status `403`
- **2025-03-26** `ae08f25fe8aa` — 2 info
  - removed the non-success response with the status `401`
  - removed the non-success response with the status `403`

---

[Operation](https://skmtc.dev/nextcloud/apis/files-retention/docs/ocs/v2.php/apps/files_retention/api/v1/retentions/:id/delete.md) · [API](https://skmtc.dev/nextcloud/apis/files-retention.md) · [Page](https://skmtc.dev/nextcloud/apis/files-retention/changes/ocs/v2.php/apps/files_retention/api/v1/retentions/:id/delete)
