Skip to main content

Find Cron Jobs Left Behind by Removed Plugins with Advanced Database Cleaner and AI

Scheduled jobs with no handler found, grouped by plugin and checked against what is installed, with nothing changed.

Difficulty Beginner
Time ~5 min

Prerequisites

A site connected to WPVibe running Advanced Database Cleaner 4.3 or newer (tested on 4.3.1, free) on WordPress 6.9 or newer and PHP 8.2 or newer with OpenSSL, with "Expose plugin abilities" turned on in Advanced Database Cleaner, Settings, Developer integrations, and an administrator account, served over HTTPS.

The prompt
My WordPress site uses Advanced Database Cleaner. Find scheduled jobs (WP-Cron) left behind by plugins I removed. Don't change anything.

1. Run discover_abilities with category adbc. If no adbc abilities are listed, or a call answers adbc_abilities_disabled, stop and tell me to install or update the free Advanced Database Cleaner plugin (4.3 or newer, on WordPress 6.9 or newer and PHP 8.2 or newer with OpenSSL) and turn on "Expose plugin abilities" in Advanced Database Cleaner, Settings, Developer integrations. If a call answers adbc_application_password_required, stop and tell me the plugin runs its abilities only for an administrator connected over HTTPS.
2. Run adbc/count-total-cron-jobs-with-no-action and tell me the count. If it is 0, say so and stop.
3. Run adbc/get-cron-jobs-list with hasAction no and itemsPerPage 200; if the count from step 2 is above 200, run it again with currentPage 2 and up until you have them all. Run rest_api GET /wp/v2/plugins to see which plugins are installed and active.
4. Group the jobs by the plugin their hook name suggests (say this is a guess from the name), with each job's hook name and how often it runs. For each group: if the plugin is active, say the jobs are probably fine, because some plugins attach their handler only while cron runs or when a setting is on; if it is inactive, say the jobs come back to life if it is turned on again; if it is not installed, say the jobs are left over and do nothing when they run. If a hook name looks like WordPress core (it starts with wp_), say it may be core or a plugin using that prefix, and put it with the jobs to keep.
5. Finish with the jobs that are probably left over, which I can delete, and where: Advanced Database Cleaner's Cron jobs screen, after a database backup, one at a time. Do not run any ability that changes something.
Already connected?

Skip pasting the full prompt. Drop this into your AI on a site that already has WPVibe:

Run the “Find Cron Jobs Left Behind by Removed Plugins with Advanced Database Cleaner and AI” recipe from the WPVibe cookbook on my connected site.

Plugins schedule background jobs, and many leave them behind when you remove the plugin. Each leftover still wakes up on its schedule and does nothing, and the list of scheduled jobs gets long and cryptic.

The AI reads the scheduled jobs with no handler through Advanced Database Cleaner, groups them by the plugin their names point to, and checks each group against your installed plugins. It tells you which ones are probably left over and which belong to an active plugin, and changes nothing.

Some active plugins attach their handler only while cron runs, so their jobs look unhandled too: delete only jobs whose plugin is gone, one at a time on Advanced Database Cleaner’s Cron jobs screen, after a backup. For a wider check of late and paused jobs, see this recipe for WP Crontrol.

Outcome

A list of scheduled jobs that are probably left over from removed plugins, and the ones to keep, with nothing changed.