---
title: "POST Clean up links based on retention days"
description: "Deletes old links for domains with linkRetentionDays set."
last_updated: "2026-10-05T05:08:28.164558+00:00"
canonical_url: "https://www.doc0.dev/docs/934e554a-e6a1-476f-bb2f-23e62d86c3fd/api/cron/cleanuplinkretention"
---

<APIEndpoint
  method={"POST"}
  path={"/api/cron/cleanup/link-retention"}
  summary={"Clean up links based on retention days"}
  description={"Deletes old links for domains with linkRetentionDays set."}
  deprecated={false}
  baseUrl={""}
/>

## Responses

<APIResponse
  statusCode={"200"}
  description={"Successful response"}
  contentType={"application/json"}
  schema={{"type":"string"}}
/>

## Try It

<APIPlayground
  method={"POST"}
  path={"/api/cron/cleanup/link-retention"}
  parameters={[]}
  baseUrl={""}
/>


## Sitemap

See the full [sitemap](https://www.doc0.dev/docs/934e554a-e6a1-476f-bb2f-23e62d86c3fd/llms.txt) for all pages in this wiki.
