Settings
Run Log Retention Now
Manually trigger the daily log-retention cleanup.
POST
Forces the log-retention cleanup to run immediately instead of waiting for the daily cron. Deletes call logs, daily-aggregated analytics rows, and stale MCP sessions older than the thresholds defined in plugin settings.
Useful right after lowering
log_retention_days or analytics_retention_days on a busy site — without this, the freed-up rows would only be reclaimed at the next cron tick. Be aware that on huge tables the delete pass can run for several seconds; the request blocks until the cleanup completes.Permission is gated on the WordPress core capability
manage_options (not the plugin’s getmcp_manage_settings). This is intentional — the operation can be slow on large tables, so it stays restricted to site administrators.Body
No body. Send an emptyPOST.
Response Fields
Per-table count of rows removed by this run.
Call-log rows deleted (older than
log_retention_days).Aggregated daily-analytics rows deleted (older than
analytics_retention_days).Stale MCP session rows reclaimed.

