Title: Completely Remove Plugin Code
Last modified: November 25, 2022

---

# Completely Remove Plugin Code

 *  Resolved [pharmanext](https://wordpress.org/support/users/pharmanext/)
 * (@pharmanext)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/completely-remove-plugin-code/)
 * Hi,
 * How can I completely remove absolutely ALL of the plugin’s entries from the database?
 * I deleted the plugin from the installed plugins.
    But its remnants keep interfering
   with the functionality of the site. So, search engines keep finding pages with
   added amp and trying to index them. For example, [https://domain.com/news/11636?amp](https://domain.com/news/11636?amp)
   and [https://domain.com/news/21717?amp=1](https://domain.com/news/21717?amp=1)
   At the same time all amp pages are redirected to the same page [https://domain.com/news/6759](https://domain.com/news/6759).
 * I had to make an addition to the .htaccess
 *     ```
       # BEGIN AMP
       RewriteEngine On
       RewriteBase /
       RewriteCond %{QUERY_STRING} ^amp$
       RewriteRule ^(.*)$ /$1? [R=301,L]
       # END
       ```
   
 *     ```
       # BEGIN AMP
       RewriteEngine On
       RewriteBase /
       RewriteCond %{QUERY_STRING} ^amp=(.*)$
       RewriteRule ^(.*)$ /$1? [R=301,L]
       # END
       ```
   
 * However, I would like to know how to get rid of all the plugin code completely.
 * Thank you in advance.

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Ahmed Kaludi](https://wordpress.org/support/users/ahmedkaludi/)
 * (@ahmedkaludi)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/completely-remove-plugin-code/#post-16234349)
 * Thanks for reaching us. Can you please refer to the following tutorial and let
   us know back if you have any queries? So that we will help you to resolve them.
 * Reference tutorial: [https://ampforwp.com/tutorials/article/how-to-properly-uninstall-the-amp-plugin-with-data/](https://ampforwp.com/tutorials/article/how-to-properly-uninstall-the-amp-plugin-with-data/)
 *  Thread Starter [pharmanext](https://wordpress.org/support/users/pharmanext/)
 * (@pharmanext)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/completely-remove-plugin-code/#post-16234507)
 * Thank you for your reply.
    Of course I did. It didn’t work.
 * P.S. The issue has been going on for a very long time.
 * Other users have also complained about it.
    [https://wordpress.org/support/topic/after-deactivate-plugin-amp-url-still-work/](https://wordpress.org/support/topic/after-deactivate-plugin-amp-url-still-work/)
 *  Plugin Author [Ahmed Kaludi](https://wordpress.org/support/users/ahmedkaludi/)
 * (@ahmedkaludi)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/completely-remove-plugin-code/#post-16236199)
 * We are sorry for the inconvenience. Can you please check once by clearing the
   cache and also please check once by deactivating the active plugins one by one
   and let us know back if it works or not?
 *  Plugin Author [Ahmed Kaludi](https://wordpress.org/support/users/ahmedkaludi/)
 * (@ahmedkaludi)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/completely-remove-plugin-code/#post-16244307)
 * Can you please check once by clearing the cache and also please check once by
   deactivating the active plugins one by one and let us know back if it works or
   not?
 *  Plugin Author [Ahmed Kaludi](https://wordpress.org/support/users/ahmedkaludi/)
 * (@ahmedkaludi)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/completely-remove-plugin-code/#post-16276963)
 * We haven’t heard back from you in a while, So I’m going to mark this as resolved.
   If you have any further issues or queries, You can start a new thread.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Completely Remove Plugin Code’ is closed to new replies.

 * ![](https://ps.w.org/accelerated-mobile-pages/assets/icon-256x256.png?rev=1693616)
 * [AMP for WP - Accelerated Mobile Pages](https://wordpress.org/plugins/accelerated-mobile-pages/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/accelerated-mobile-pages/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/accelerated-mobile-pages/)
 * [Active Topics](https://wordpress.org/support/plugin/accelerated-mobile-pages/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/accelerated-mobile-pages/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/accelerated-mobile-pages/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Ahmed Kaludi](https://wordpress.org/support/users/ahmedkaludi/)
 * Last activity: [3 years, 5 months ago](https://wordpress.org/support/topic/completely-remove-plugin-code/#post-16276963)
 * Status: resolved