Skip to content

Instantly share code, notes, and snippets.

@bhubbard
Forked from lukecav/Commands
Created May 15, 2023 15:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bhubbard/7039e338792a50dca51a1964e823a9b5 to your computer and use it in GitHub Desktop.
Save bhubbard/7039e338792a50dca51a1964e823a9b5 to your computer and use it in GitHub Desktop.
Remove MonsterInsights options left after the plugin is removed from WordPress using WP-CLI
# delete all monsterinsight option values
wp option delete monsterinsights_usage_tracking_config
wp option delete monsterinsights_over_time
wp option delete monsterinsights_db_version
wp option delete monsterinsights_settings_version
wp option delete monsterinsights_current_version
wp option delete monsterinsights_settings
wp option delete monsterinsights_site_tt
wp option delete monsterinsights_site_profile
wp option delete monsterinsights_version_upgraded_from
wp option delete monsterinsights_review
wp option delete monsterinsights_pageinsights_next_fetch
wp option delete monsterinsights_notices
wp option delete _amn_mi_last_checked
wp option delete _amn_mi-lite_last_checked
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment