Skip to main content

Run Retention Rule

Run an existing retention rule immediately (this will delete matching content). Use the dry run endpoint first.

Allowed Roles: Workspace Admin or System Admin • Authentication Required • Local repositories only Notes: If retention rules are disabled on the server, this endpoint returns 403.

POST https://api.repoflow.io/1/workspaces/<workspace-ref>/repositories/<repository-ref>/retention-rules/run/<retention-rule-id>

Path Parameters

workspace-refstringRequired

Workspace ID or name.

repository-refstringRequired

Repository ID or name.

retention-rule-idstringRequired

Retention rule ID (UUID).