---
title: "Cleanup Expired Uploads"
method: POST
path: "/api/cleanup/expired-uploads"
---

# Cleanup Expired Uploads

`POST /api/cleanup/expired-uploads`

## Request

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

Delete expired files from S3 and remove their database records.

Protected by a shared secret passed in the X-Cleanup-Secret header.
Intended to be called by an external scheduler (e.g. n8n, cron).

## Response `200`

Successful Response

- unknown

---

[API](https://skmtc.dev/uploadtourl/apis/uploadtourl-api.md) · [All operations](https://skmtc.dev/uploadtourl/apis/uploadtourl-api/llms.txt) · [OpenAPI document](https://skmtc.dev/uploadtourl/apis/uploadtourl-api/revisions/9344586cc7e9?raw)
