Skip to content

Instantly share code, notes, and snippets.

@davcavalcante
Forked from lukecav/Commands
Created May 8, 2023 00:40
Show Gist options
  • Select an option

  • Save davcavalcante/3de58949026f8094a5952a94cfd01f6f to your computer and use it in GitHub Desktop.

Select an option

Save davcavalcante/3de58949026f8094a5952a94cfd01f6f to your computer and use it in GitHub Desktop.
Remove WPML options left after the plugin is removed from WordPress using WP-CLI
# delete all wpml option values
wp option delete wpml_base_slug_translation
wp option delete wpml_built_with_page_builder
wp option delete wpml_config_files_arr
wp option delete wpml_config_index
wp option delete wpml_config_index_updated
wp option delete wpml_dependencies:installed_plugins
wp option delete wpml_dependencies:invalid_plugins
wp option delete wpml_dependencies:needs_validation
wp option delete wpml_dependencies:valid_plugins
wp option delete wpml_language_switcher
wp option delete wpml_language_switcher_template_objects
wp option deletewpml_notices
wp option delete wpml_registered_endpoints
wp option deletewpml_shortcode_list
wp option delete WPML_SITE_ID
wp option delete wpml_st_display_strings_scan_notices
wp option delete wpml_start_version
wp option delete wpml_string_table_ok_for_mo_import
wp option deletewpml_strings_need_links_fixed
wp option delete wpml_update_statuses
wp option delete WPML_Upgrade_Admins_To_Manage_Translations_Has_Run
wp option delete wpml_wp_updated_mo_files
wp option delete wpml-gutenberg-config
wp option delete wpml-package-translation-db-updates-run
wp option delete wpml-package-translation-refresh-required
wp option delete wpml-package-translation-string-packages-table-updated
wp option delete wpml-package-translation-string-table-updated
wp option delete wpml-st-all-strings-are-in-english
wp option delete icl_admin_messages
wp option delete icl_sitepress_settings
wp option delete icl_sitepress_version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment