---
title: "Cleanup Old Changes Manual"
method: POST
path: "/api/admin/cleanup-changes"
---

# Cleanup Old Changes Manual

`POST /api/admin/cleanup-changes`

## Request

- Base URL: `https://api.exploreyc.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.exploreyc.com/api/admin/cleanup-changes`
- Auth: none declared

Manually cleanup old change log entries (admin endpoint)

Args:
    days_to_keep: Number of days of changes to retain (default: 90)

Returns:
    Number of rows deleted

## Query parameters

- `days_to_keep` integer

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/exploreyc/apis/yc-company-scraper-api.md) - [All operations](https://skmtc.dev/exploreyc/apis/yc-company-scraper-api/llms.txt) - [OpenAPI document](https://skmtc.dev/exploreyc/apis/yc-company-scraper-api/revisions/d48bd3e241b8?raw)
