How to Remove AMP Plugin Data on Your Site

Originally published at: How to Remove AMP Plugin Data on Your Site - MainWP WordPress Management

The AMP project from Google might be killed off in the future. Currently, the official AMP plugin does not have an uninstall option or a UI to remove posts and options that the plugin will store in the site’s database. The option to search for in phpMyAdmin would be using the following option name; amp-options…

WP-CLI commands to remove AMP plugin data would be the following.

wp option delete amp-options
wp transient delete --all
wp post delete $(wp post list --post_type='amp_validated_url' --format=ids)
wp term list amp_validation_error --field=term_id | xargs wp term delete amp_validation_error

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.