Cleanup removes old notifications from the active backend. Choose a retention period that suits your account workflow, confirm the target table, and test the scheduled task. Cleanup is not an archive or a migration tool.
Check the target first #
Open Cleanup and read Cleanup target. It identifies the active storage and resolved notification table. After a migration or backend switch, check this again before running cleanup. Nelx does not automatically delete the retained source CCT after migrating to native storage.
Click Verify Table Access to check direct access to the active notification table. If verification fails, correct Storage settings or database access before setting up a recurring deletion.
Keep a database backup before your first cleanup or when changing retention significantly. A read notification and an unread notification can both become old enough for retention cleanup.
Configure automatic retention #
Use Automatic Cleanup to select 7, 14, 21, 30, 60, or 90 days. Select Never when you do not want scheduled age-based removal. Save the plugin settings so the cleanup handler uses the intended period.
The selected period tells the handler which old records qualify. It does not by itself install a task in your hosting control panel. You must configure a server cron or an external cron service using one of the supplied commands.
Set up server cron #
- Find Cron Commands in Cleanup.
- Use Method 1: WordPress AJAX when adding a task to your server’s crontab or hosting cron interface.
- Click Copy AJAX Command and paste the complete generated command into the task’s command field.
- Choose the schedule in the hosting interface. A daily run is a practical starting point for age-based retention.
- Save the hosting task, then return to Nelx to test it.
The generated command contains your own site URL and cleanup secret. Use the actual command from your installation, not a command copied from another website or a screenshot. Keep the secret out of public support posts and documentation.
Use an external cron service #
Method 2: Direct File is provided for services such as cron-job.org. Use the generated direct URL/command in the format your service expects. A service with a URL field needs the URL, not shell redirection text from a curl command.
Only one scheduling method is needed. Configuring both against the same schedule creates redundant calls. Ensure your firewall permits the selected cleanup endpoint and that the service can reach your website.
Test before relying on the schedule #
Use the displayed test-mode URL, which adds test=1 and returns JSON. Test mode reports the handler result without carrying out the normal deletion. Confirm that the request is authenticated and reaches the expected site.
Then use Verify Cron Setup after adding the task to your hosting or cron service. A successful browser test confirms reachability at that moment; also inspect the scheduler’s execution history to confirm its recurring task actually runs.
If you use Regenerate Secret, update every stored cron command or URL immediately. Old scheduled requests will no longer authenticate. Test the replacement before leaving the setup.
Run a manual cleanup #
Under Manual Cleanup, enter the number of days and click Clean Up Now. This is a separate immediate action using that number; check it carefully before confirming the operation. Wait for the result and review the deletion count or error.
Use a known old test notification to validate the cutoff rather than deleting production history merely to see whether the button works. A result of zero can be correct if no records are old enough.
After migration or a retention change #
Recheck Active storage and Cleanup target, verify table access, and run the non-destructive test again. The retained old CCT is not the new native cleanup target. If you intentionally retire that CCT later, handle its removal separately after verifying backups and all external dependencies.
If cleanup fails, check the target, secret, firewall, cron history, and chosen retention period. Never is expected to prevent automatic age-based deletion; an empty deletion count is not automatically a cron failure.

