# Create cleanup

> POST /api/videos/cleanup

Permanently deletes all videos past their retention period.
This endpoint should be called by a cron job or admin user.

Requires admin role or `Authorization: Bearer $CRON_SECRET`.

```json
{
  "/videos/cleanup": {
    "post": {
      "tags": [
        "Videos"
      ],
      "summary": "Create cleanup",
      "operationId": "createVideoCleanup",
      "description": "POST /api/videos/cleanup\n\nPermanently deletes all videos past their retention period.\nThis endpoint should be called by a cron job or admin user.\n\nRequires admin role or `Authorization: Bearer $CRON_SECRET`.",
      "security": [
        {
          "bearerAuth": []
        }
      ],
      "responses": {
        "201": {
          "description": "Created successfully"
        },
        "401": {
          "description": "Unauthorized"
        }
      }
    }
  }
}
```
