admin

Expire Logs

Security fix (2026-09-02), part 2 -- query_log/mcp_log retention. dry_run defaults to TRUE: reports what would be deleted, deletes nothing. Pass dry_run=false to actually delete. Same report-then-confirm discipline as /admin/expire-anonymous-projects. The real purge does not depend on this endpoint: main.py's _start_retention_job runs expire_old_logs(90, dry_run=False) daily. Use this for a manual dry-run report.

get/admin/expire-logs

Request

  • Base URL: https://api.colourmemory.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.colourmemory.com/admin/expire-logs
  • Auth: none declared

Query parameters

retention_daysinteger
dry_runboolean

Headers

x-admin-keystring nullable

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.