Title: Retrieve/Delete snippets while plugin deactivated
Last modified: November 15, 2023

---

# Retrieve/Delete snippets while plugin deactivated

 *  Resolved [konstantinak](https://wordpress.org/support/users/konstantinak/)
 * (@konstantinak)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/retrieve-delete-snippets-while-plugin-deactivated/)
 * Hello!
 * I created a code snippet that causes a critical error. I was able to deactivate
   the whole plugin but everytime I reactivate it I guess the faulty snippet gets
   activated as well and the website falls apart. As a result I cannot delete the
   faulty snippet from the admin area. Is there a way to delete it while the plugin
   is deactivated? Maybe from the database? 
   I have many other snippets stored in
   your plugin and I don’t want to lose them.
 * Thank you
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fretrieve-delete-snippets-while-plugin-deactivated%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Mircea Sandu](https://wordpress.org/support/users/gripgrip/)
 * (@gripgrip)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/retrieve-delete-snippets-while-plugin-deactivated/#post-17204953)
 * In order to get around the error and disable the faulty snippet you can use the
   WPCode Safe Mode which will prevent any snippet from being executed on the site.
   
   After activating the plugin again, to access the safe mode simply add the parameter
   wpcode-safe-mode=1 to your admin url, for example [https://yoursite.com/wp-admin/?wpcode-safe-mode=1](https://yoursite.com/wp-admin/?wpcode-safe-mode=1)
   Once you enter the safe mode you should simply deactivate the snippet from the
   WPCode interface. More details on how to access the safe mode can be found in
   this article: [https://wpcode.com/docs/php-error-handling-safe-mode/](https://wpcode.com/docs/php-error-handling-safe-mode/)
 *  Thread Starter [konstantinak](https://wordpress.org/support/users/konstantinak/)
 * (@konstantinak)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/retrieve-delete-snippets-while-plugin-deactivated/#post-17204986)
 * Thank you very much for the fast reply and the solution!

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

The topic ‘Retrieve/Delete snippets while plugin deactivated’ is closed to new replies.

 * ![](https://ps.w.org/insert-headers-and-footers/assets/icon-256x256.png?rev=2758516)
 * [WPCode - Insert Headers and Footers + Custom Code Snippets - WordPress Code Manager](https://wordpress.org/plugins/insert-headers-and-footers/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/insert-headers-and-footers/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/insert-headers-and-footers/)
 * [Active Topics](https://wordpress.org/support/plugin/insert-headers-and-footers/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/insert-headers-and-footers/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/insert-headers-and-footers/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [konstantinak](https://wordpress.org/support/users/konstantinak/)
 * Last activity: [2 years, 6 months ago](https://wordpress.org/support/topic/retrieve-delete-snippets-while-plugin-deactivated/#post-17204986)
 * Status: resolved