How to remove the WPengine plugins from your WordPress Migration

I’ve had a few sites that I’ve recently migrated to new hosting at Kinsta (see my reasoning for Kinsta and other platforms here.

I have absolutely no complaints about WPengine, *but* when you do migrate away from their platform they seem to leave a bit of junk in your wp-content and mu-plugins directory. Specifically these files:

wp-content/mu-plugins/mu-plugin.php
wp-content/mu-plugins/wpengine-common/
wp-content/mu-plugins/slt-force-strong-passwords.php
wp-content/mu-plugins/force-strong-passwords/
wp-content/mu-plugins/stop-long-comments.php
wp-content/advanced-cache.php
wp-content/object-cache.php

If you just navigate to these files and attempt to delete them, you’ll break your new WP installation. Instead, download the old copy of your wp-config.php file, rename it to wpconfig_old.php.

Take note of the following:

– Everything in // ** MySQL settings ** //

– Authentication Unique Keys and Salts.

– WordPress Database Table prefix.

Kinsta also has a section that defines the absolute path to the WordPress directory. Check yours is the same as this:

Delete the following WPengine files

Once you’ve sFTP’d your new wp-config.php file, you can safely delete the following files. Remember, it’s wise to back everything up before you start deleting. Just create a folder called “WPengine junk” and copy these files there before you delete on the server.

Navigate to the mu-plugins folder and delete:

wp-content/mu-plugins/mu-plugin.php
wp-content/mu-plugins/wpengine-common/
wp-content/mu-plugins/slt-force-strong-passwords.php
wp-content/mu-plugins/force-strong-passwords/
wp-content/mu-plugins/stop-long-comments.php
wp-content/mu-plugins/wpengine-security-auditor.php

Then, navigate to the wp-content folder and delete:

wp-content/advanced-cache.php
wp-content/object-cache.php

That’s it, all done.

Leave a Reply