{"id":9776,"date":"2026-06-07T14:49:53","date_gmt":"2026-06-07T12:49:53","guid":{"rendered":"https:\/\/mybox.com\/help\/?post_type=manual_kb&#038;p=9776"},"modified":"2026-06-07T14:49:54","modified_gmt":"2026-06-07T12:49:54","slug":"optimizare-wordpress-eliminarea-datelor-ramase-de-la-pluginurile-sterse","status":"publish","type":"manual_kb","link":"https:\/\/mybox.com\/help\/ro\/knowledgebase\/wordpress-optimization-removing-leftover-data-from-deleted-plugins\/","title":{"rendered":"Optimizarea WordPress - Eliminarea datelor r\u0103mase de la plugin-urile \u0219terse"},"content":{"rendered":"<div class=\"translation-block translation-block-merged\">\n<p class=\"wp-block-paragraph\">One of WordPress&#8217;s greatest strengths is its extensive plugin ecosystem. Plugins allow you to add new features and functionality without writing custom code.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">However, not every plugin is kept permanently. During website development, it is common to install, test, and remove various plugins. Some plugins leave configuration data behind in the database even after they have been uninstalled.<\/p>\n\n\n\n<\/div>\n\n<div id=\"mybox-686864509\" class=\"mybox-content mybox-entity-placement\"><div class=\"early-access-banner-inpost\">\r\n  <div class=\"banner-left-inpost\">\r\n    <div class=\"icon-box-inpost\">\r\n      <img decoding=\"async\" src=\"https:\/\/mybox.com\/help\/wp-content\/uploads\/2026\/02\/square-info-icon.svg\" alt=\"Info\">\r\n    <\/div>\r\n    <div class=\"text-box-inpost\">\r\n      <span class=\"label-inpost\"><span class=\"translation-block translation-block-banner-text\">Acces timpuriu<\/span><\/span>\r\n      <h4><span class=\"translation-block translation-block-banner-text\">Mai ave\u021bi nevoie de ajutor?<\/span><\/h4>\r\n      <p><span class=\"translation-block translation-block-banner-text\">Contacta\u021bi echipa noastr\u0103 de servicii pentru clien\u021bi.<\/span><\/p>\r\n    <\/div>\r\n  <\/div>\r\n\r\n  <div class=\"banner-right-inpost\">\r\n    <a href=\"https:\/\/panel.mybox.com\/helpdesk2\/v\/list\/\" class=\"banner-button-inpost\"><span class=\"translation-block translation-block-banner-text\">Trimite mesaj<\/span><\/a>\r\n  <\/div>\r\n<\/div><\/div>\n\n<div class=\"translation-block translation-block-merged\"><p class=\"wp-block-paragraph\">Over time, these unused records can accumulate and increase the size of your database unnecessarily.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This guide explains how to identify database entries that may have been left behind by a removed plugin.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><strong>Important<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This guide is intended for users with basic database administration knowledge.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Before executing any SQL queries:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Create a complete database backup.<\/li>\n\n\n\n<li>Verify that you are working with the correct database.<\/li>\n\n\n\n<li>Review the query results carefully before deleting any data.<\/li>\n\n\n\n<li>Confirm that your website functions correctly after making changes.<\/li>\n<\/ul>\n<\/blockquote>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_86 ez-toc-wrap-left counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/wordpress-optimization-removing-leftover-data-from-deleted-plugins\/#Access_phpMyAdmin\" >Access phpMyAdmin<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/wordpress-optimization-removing-leftover-data-from-deleted-plugins\/#Log_In_to_the_Database\" >Log In to the Database<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/wordpress-optimization-removing-leftover-data-from-deleted-plugins\/#Open_the_SQL_Query_Editor\" >Open the SQL Query Editor<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/wordpress-optimization-removing-leftover-data-from-deleted-plugins\/#Search_for_Plugin-Related_Records\" >Search for Plugin-Related Records<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/wordpress-optimization-removing-leftover-data-from-deleted-plugins\/#Example\" >Example<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/wordpress-optimization-removing-leftover-data-from-deleted-plugins\/#Review_the_Results_Carefully\" >Review the Results Carefully<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/wordpress-optimization-removing-leftover-data-from-deleted-plugins\/#Removing_the_Records\" >Removing the Records<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/wordpress-optimization-removing-leftover-data-from-deleted-plugins\/#Why_Remove_Old_Plugin_Data\" >Why Remove Old Plugin Data?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/wordpress-optimization-removing-leftover-data-from-deleted-plugins\/#Alternative_Cleanup_Methods\" >Alternative Cleanup Methods<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/wordpress-optimization-removing-leftover-data-from-deleted-plugins\/#Summary\" >Summary<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Access_phpMyAdmin\"><\/span>Access phpMyAdmin<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Log in to the mybox Panel.<\/li>\n\n\n\n<li>Navigate to:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>Databases\n<\/code><\/pre>\n\n\n\n<ol start=\"3\" class=\"wp-block-list\">\n<li>Click:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>phpMyAdmin\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">A new browser tab will open with the database login page.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Log_In_to_the_Database\"><\/span>Log In to the Database<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Use the database credentials associated with your WordPress website.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you do not know the credentials, you can find them in the <code>wp-config.php<\/code> file located in the root directory of your WordPress installation.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>define('DB_NAME', 'database_name');\ndefine('DB_USER', 'database_user');\ndefine('DB_PASSWORD', 'database_password');\ndefine('DB_HOST', 'database_host');\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The file is typically located in:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>public_html\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Open_the_SQL_Query_Editor\"><\/span>Open the SQL Query Editor<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">After logging in:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Select your WordPress database from the left-hand menu.<\/li>\n\n\n\n<li>Click the:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>SQL\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">tab at the top of the page.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This opens the SQL query editor.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Search_for_Plugin-Related_Records\"><\/span>Search for Plugin-Related Records<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Before removing anything, identify records that belong to the plugin.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Use the following query:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT *\nFROM `wp_options`\nWHERE `autoload` = 'yes'\nAND `option_name` LIKE '%plugin-name%'\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Replace:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>plugin-name\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">with a unique identifier related to the plugin.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Example\"><\/span>Example<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">If you are looking for data left behind by the Disqus plugin:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT *\nFROM `wp_options`\nWHERE `autoload` = 'yes'\nAND `option_name` LIKE '%disqus%'\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The query will display matching records stored in the <code>wp_options<\/code> table.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Review_the_Results_Carefully\"><\/span>Review the Results Carefully<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Before deleting any records:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Verify that the entries belong to the plugin you removed.<\/li>\n\n\n\n<li>Ensure the plugin is no longer installed.<\/li>\n\n\n\n<li>Confirm that no active plugin depends on the displayed settings.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Some plugins share common naming conventions, so deleting the wrong records could affect website functionality.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Removing_the_Records\"><\/span>Removing the Records<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">After reviewing the results and confirming that the entries belong to a removed plugin, you can remove them using a DELETE query.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>DELETE\nFROM `wp_options`\nWHERE `option_name` LIKE '%disqus%'\n<\/code><\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><strong>Warning<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Execute deletion queries only after reviewing the results returned by the SELECT query and ensuring the records are no longer needed.<\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Why_Remove_Old_Plugin_Data\"><\/span>Why Remove Old Plugin Data?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Cleaning up leftover plugin records can provide several benefits:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Reduced database size.<\/li>\n\n\n\n<li>Faster database backups.<\/li>\n\n\n\n<li>Improved database performance.<\/li>\n\n\n\n<li>Reduced autoloaded data.<\/li>\n\n\n\n<li>Better overall WordPress efficiency.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">This is particularly useful on websites that have:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Used many plugins over time.<\/li>\n\n\n\n<li>Undergone multiple redesigns.<\/li>\n\n\n\n<li>Been migrated between hosting providers.<\/li>\n\n\n\n<li>Been operating for several years.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Alternative_Cleanup_Methods\"><\/span>Alternative Cleanup Methods<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If you prefer not to work directly with SQL queries, several optimization plugins can help identify and remove orphaned plugin data, including:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>WP-Optimize<\/li>\n\n\n\n<li>Advanced Database Cleaner<\/li>\n\n\n\n<li>LiteSpeed Cache<\/li>\n\n\n\n<li>WP Rocket<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Always review suggested deletions carefully before confirming them.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Summary\"><\/span>Summary<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Some WordPress plugins leave configuration data in the database after being removed.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To identify potential leftovers:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Open phpMyAdmin.<\/li>\n\n\n\n<li>Select your WordPress database.<\/li>\n\n\n\n<li>Open the SQL tab.<\/li>\n\n\n\n<li>Run:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT *\nFROM `wp_options`\nWHERE `autoload` = 'yes'\nAND `option_name` LIKE '%plugin-name%'\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Replace <code>plugin-name<\/code> with the name of the plugin you removed.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Review the results carefully before deleting any records, and always create a database backup before performing cleanup operations.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n<\/div>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"template":"","format":"standard","manualknowledgebasecat":[58],"manual_kb_tag":[190,2146,2147,2750,4828,4829,4830,4832,4833,4834],"class_list":["post-9776","manual_kb","type-manual_kb","status-publish","format-standard","hentry","manualknowledgebasecat-web-applications-cms","manual_kb_tag-wordpress","manual_kb_tag-phpmyadmin","manual_kb_tag-database-optimization","manual_kb_tag-database-cleanup","manual_kb_tag-plugin-cleanup","manual_kb_tag-remove-plugin-data","manual_kb_tag-leftover-plugin-data","manual_kb_tag-wp-options-table","manual_kb_tag-autoloaded-data","manual_kb_tag-orphaned-plugin-data"],"_links":{"self":[{"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb\/9776","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb"}],"about":[{"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/types\/manual_kb"}],"author":[{"embeddable":true,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":1,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb\/9776\/revisions"}],"predecessor-version":[{"id":9777,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb\/9776\/revisions\/9777"}],"wp:attachment":[{"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/media?parent=9776"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manualknowledgebasecat?post=9776"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb_tag?post=9776"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}