{"id":15008,"date":"2021-08-26T08:08:38","date_gmt":"2021-08-26T08:08:38","guid":{"rendered":"https:\/\/newblog.siteground.com\/en\/?p=15008"},"modified":"2025-04-02T08:57:13","modified_gmt":"2025-04-02T08:57:13","slug":"wordpress-database-cleanup","status":"publish","type":"post","link":"https:\/\/academy.siteground.com\/en\/wordpress-database-cleanup\/","title":{"rendered":"WordPress Database Cleanup: Steps and Plugins To Keep Your Site Unpolluted and Fast"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">I\u2019ve been managing (and mis-managing) SQL databases for almost 37 years now. SQL was the second programming language I mastered and to this day it is still one of my favorites.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In all that time of wrangling databases, one thing has remained constant, you have to actively manage your database and at times, that means cleanup and maintenance. WordPress databases are no different.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"why-clean-your-wordpress-database\"><\/span>Why Clean Your WordPress Database?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">One of the most important reasons to do WordPress database cleanup is because your database is the second slowest part of your entire system. The only thing slower is the file system itself. So making sure that your database is operating at optimal speed is important not only to your site health but to your search engine rankings. Most of the major search engines use page speed as a factor in ranking a page. For optimum WordPress performance, you want to keep the database clean. Cleaning your WordPress database is part of an overall process of WordPress performance tuning. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The vast majority of WordPress installs use a MySQL (or MariaDB) Relational Database Management System (RDBMS). That is what we will focus on in this article. Even so, most of the advice will apply to whatever datastore you are using for your WordPress database.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"steps-to-take-for-an-optimal-wordpress-database-cleanup\"><\/span>Steps to Take for an optimal WordPress Database Cleanup<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Back Up First<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Before you embark on this journey, make sure you <strong>create a fresh backup<\/strong>. Yes, you should have nightly backups from the past 30 days nearby but things may have changed since your backup. You want to make sure that if you mess something up, you can easily restore things to the point where you started.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If your hosting partner offers an on-demand backup system like SiteGround does, make one now. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/academy.siteground.com\/en\/wp-content\/uploads\/sites\/2\/2021\/08\/image-1024x595-1.png\" alt=\"\" class=\"wp-image-15041\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">If not, before you go any further, install a plugin that will allow you to create and restore database backups.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">There are many good plugins out there that will do the job. I\u2019ve worked with several of them and looked at others. For this job, backing up and restoring, I like UpdraftPlus WordPress Backup Plugin because it has a very easy to understand restore feature. The free version will get the job done for our purposes but the paid version adds a lot of nice to have things. (like support for WP-CLI&#8230; that is really important to me in most plugins.)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Once you get the plugin installed, go ahead and make a backup. Unless you are deleting files, there is no reason to backup everything, just backup the database.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After you make your backup, <strong>go ahead and restore it<\/strong> so you can see what it\u2019s like before you get in an emergency situation. Remember, if you have an untested backup system, you don\u2019t have disaster recovery, you have hopes and wishes.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Leftover tables in the WordPress Database<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Now that you\u2019ve got your backup system ready, this first item is one that you may want to bring a developer in on. I\u2019ma&nbsp; big fan of bringing in professional help when I\u2019m in over my head and this task may put a lot of people in over their heads.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If your site has been around a while, the chances are good that you have <strong>installed and uninstalled a lot of plugins<\/strong>. My personal site has been running WordPress since 2005. Many plugins, especially the older ones, did not clean up after themselves. This means that during install, they may have created <strong>tables in your database that they did not delete<\/strong> when you uninstalled them. Look at your list of tables &#8211; if you don\u2019t know how, you don\u2019t need to be doing this without help &#8211; and try and identify any that are no longer in use. <strong>Remove those tables from your database<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/academy.siteground.com\/en\/wp-content\/uploads\/sites\/2\/2021\/08\/image-1-397x1024-1.png\" alt=\"\" class=\"wp-image-15043\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Once you\u2019ve removed them, test EVERYTHING. It is these kinds of operations that make me recommend <strong><a href=\"https:\/\/www.siteground.com\/tutorials\/staging\/\" target=\"_blank\" rel=\"noopener\" aria-label=\" (opens in a new tab)\">having a staging environment<\/a><\/strong> up and running and test these things in staging first. Still, if you have your backup, you should be good to go.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I looked at the database for my personal site a year or so ago. There are over 500 tables in it. The standard WordPress install has around 40. I really need to take the time to clean things up myself.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">There are plugins that will help you with this task if you do not have a developer available. One of them is mentioned below, <a href=\"https:\/\/wordpress.org\/plugins\/wp-optimize\/\" target=\"_blank\" rel=\"noopener\">WP-Optimize<\/a>.\u00a0<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Don\u2019t be alarmed if when you try and remove a table it fails. The database user that your WordPress install runs under may not &#8211; probably SHOULD NOT &#8211; have table delete privileges. Still, you can show this list to your developer and they will know how to safely remove these tables.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Revisions<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Next up, let\u2019s talk about <strong>Post revisions<\/strong>. As you are working on a Post or Page, WordPress is constantly saving it in the background. To allow you to go back and restore one of these versions at a later date, <strong>each revision is stored as a separate record in the posts database<\/strong>. Once you have finished editing your Post and pushed it live, these revisions serve no purpose.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/academy.siteground.com\/en\/wp-content\/uploads\/sites\/2\/2021\/08\/image-2-1024x367-1.png\" alt=\"\" class=\"wp-image-15044\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">If you have a developer on staff, they can easily delete these records from the table without having to install any plugins. If you don\u2019t have a developer, or you want to make a change that will keep this problem solved for you, check out <a href=\"https:\/\/wordpress.org\/plugins\/wp-revisions-control\/\" target=\"_blank\" rel=\"noopener\">WP Revisions Control<\/a>. This simple plugin will allow you to set how many revisions to keep and it will keep your database clean for you, automatically.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Draft Posts<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Another source of \u201ccruft\u201d in your database is <strong>old posts that you started but never released<\/strong>. Again, using my personal site as an example, I looked one time and I had well over 50 posts in DRAFT status. This means not only did I have 50 records in my database I didn\u2019t need but I also had revisions for each of them just hanging around. Get rid of those old posts that you are never going to release.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/academy.siteground.com\/en\/wp-content\/uploads\/sites\/2\/2021\/08\/image-3-1024x248-1.png\" alt=\"\" class=\"wp-image-15045\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Empty the Trash<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">As an administrator of a WordPress installation, you have <strong>deleted old posts, pages, and other things<\/strong>. WordPress doesn\u2019t actually remove these old entries from your system, it moves them into \u201cthe trash\u201d. (From a technical perspective it changes the status of these items.)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The <strong>Trash<\/strong> is great if you need to go back and retrieve something later on but after a certain amount of time, you can be fairly confident that you aren\u2019t going to need what you trashed. So empty \u201cThe Trash\u201d. When you do this, you actually delete the items that WordPress has marked as trash. This gets them out of your database and keeps them from hanging around and cluttering things up.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/academy.siteground.com\/en\/wp-content\/uploads\/sites\/2\/2021\/08\/image-4-1024x195-1.png\" alt=\"\" class=\"wp-image-15046\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"things-not-to-worry-about\"><\/span>Things Not To Worry About<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">There is a lot of advice on what you should do to clean your WordPress database out on the Internet. Some of it is well meaning but not all that useful. Here are a couple of things that you don\u2019t need to worry about.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Cleaning Transients<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Transients are little pieces of information that WordPress and plugins need to store temporarily. Transients have an expiration date. Some people will advise you to make sure you cleanup expired transients every once in a while. Don\u2019t bother. <strong>WordPress\u2019 cron system will do this for you every night<\/strong>. At best, you may delete a few hundred records a few hours early. The effort you put into managing transients is effort you could better spend making your site pretties, faster, or more useful to your readers.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Optimizing Tables<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A lot of places will tell you to \u201coptimize your tables\u201d. Some might even explain what this means while others just used it as a magic incantation that is supposed to make you feel better about your database. The truth is that there was a time when optimizing database tables was important. Thankfully those days are long gone. These days <strong>most MySQL databases use tables that don\u2019t require optimization<\/strong>. Even my crusty old personal site\u2019s database no longer needs to be optimized. Technically, it is no longer necessary to do this for 99.9% of WordPress installations out there. If you are part of the other .01%, instead of optimizing your tables, move your site to a modern version of MySQL with a table type that does not need optimization<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"plugins-that-do-all-of-this-for-you\"><\/span>Plugins that do all of this for you<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Yes, there are things you need to do on a regular basis to keep your database clean and healthy. Yes, you or a programmer working for you can do these things manually on a regular basis. However, if you are like most of us, you don\u2019t like having to remember to clean things up. For those cases, there are plugins that can do all of this and much more for you, automatically.&nbsp; Think of them as the Roomba for your site. These plugins will come out while you aren\u2019t around and take care of cleaning up the dusty corners of your site for you on a regular basis.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here are four options you can consider:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Advanced Database Cleaner<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">This plugin is available in both free and premium. The free version will do all of the basics you need done. You can even schedule it to run on a regular basis so that your database stays clean. The Pro version will give you many more options. I recommend starting with the free until you understand what it does and then if you feel the need, move to the Pro.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Optimize Database after Deleting Revisions<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">This is another good choice although it does offer \u201ctabel optimization\u201d that I just got through telling you was unnecessary. It will keep your database clean of old posts, comments, revisions, and a bunch of other things. There aren\u2019t as many options as Advanced Database Cleaner but the ones you really need are there. This plugin is free and there is a link to donate to the author if you use it and find it useful. (and I always suggest you donate to the authors of free plugins if you use their plugins)&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you do choose to analyze the tables, it will attempt to run analysis on them but if you are using a table type that doesn\u2019t require this feature, it will tell you that. It won\u2019t harm your database or any of your data.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">WP-Optimize \u2013 Cache, Clean, Compress<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Probably my favorite option though (and the one I have loaded on my personal site) is WP-Optimize. This performs all the functions we\u2019ve discussed here plus a lot of other things. Like the previous two, you can schedule this plugin to run automatically. However, since this is written by the same team that wrote the very first plugin I recommended, UpdraftPlus WordPress Backup Plugin, it integrates with that seamlessly and gives you the option to automatically back your database up before it performs maintenance. This is a nice feature. Like Updraft Plus, WP-Optimize comes in a free and paid version. I\u2019ll leave it to you to decide whether you need the features present in the paid version.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Speed Optimizer<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">If SiteGround is your hosting partner then make sure you have the <a href=\"https:\/\/www.siteground.com\/wordpress-plugins\/siteground-optimizer\" data-type=\"URL\" data-id=\"https:\/\/www.siteground.com\/wordpress-plugins\/siteground-optimizer\">Speed Optimizer plugin <\/a>installed. This is a MUST INSTALL plugin for every site hosted with SiteGround because it\u2019s free speed.\u00a0This is an easy plugin to install and while the database is not it\u2019s primary focus, it does do routine database maintenance. It also does a LOT more to speed your site up and keep it fast. For the full details on this great plugin, check out this <a href=\"https:\/\/newblog.siteground.com\/en\/even-faster-wordpress-sites-with-our-sg-optimizer-plugin\/\" data-type=\"post\" data-id=\"12242\">blog post<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"wrap-up\"><\/span>Wrap Up<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Keeping your WordPress database clean is an important step to making sure that your site always runs quickly. Either invest the time to manually clean your site on a regular basis or install and configure one of the recommended plugins to do it for you. Either way, it is time well spent.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">[subscribe_cta]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I\u2019ve been managing (and mis-managing) SQL databases for almost 37 years now. SQL was the second programming language I mastered and to this day it is still one of my favorites. In all that time of wrangling databases, one thing has remained constant, you have to actively manage your database and at times, that means &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/academy.siteground.com\/en\/wordpress-database-cleanup\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;WordPress Database Cleanup: Steps and Plugins To Keep Your Site Unpolluted and Fast&#8221;<\/span><\/a><\/p>\n","protected":false},"author":35,"featured_media":15011,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-15008","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v25.9 (Yoast SEO v28.3) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>WordPress Database Cleanup - SiteGround<\/title>\n<meta name=\"description\" content=\"Cleaning up your WordPress database is a key part of your site optimization. Learn which steps to take and which plugins to use to keep it unpolluted\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/academy.siteground.com\/en\/wordpress-database-cleanup\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"WordPress Database Cleanup: Steps and Plugins To Keep Your Site Unpolluted and Fast\" \/>\n<meta property=\"og:description\" content=\"Cleaning up your WordPress database is a key part of your site optimization. Learn which steps to take and which plugins to use to keep it unpolluted\" \/>\n<meta property=\"og:url\" content=\"https:\/\/academy.siteground.com\/en\/wordpress-database-cleanup\/\" \/>\n<meta property=\"og:site_name\" content=\"SiteGround\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/siteground\" \/>\n<meta property=\"article:published_time\" content=\"2021-08-26T08:08:38+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-04-02T08:57:13+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/newblog.siteground.com\/en\/wp-content\/uploads\/sites\/2\/2021\/08\/fb-1200x630-9.png\" \/>\n<meta name=\"author\" content=\"Cal Evans\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/newblog.siteground.com\/en\/wp-content\/uploads\/sites\/2\/2021\/08\/fb-1200x630-9-1.png\" \/>\n<meta name=\"twitter:creator\" content=\"@siteground\" \/>\n<meta name=\"twitter:site\" content=\"@siteground\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Cal Evans\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"10 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/academy.siteground.com\\\/en\\\/wordpress-database-cleanup\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/academy.siteground.com\\\/en\\\/wordpress-database-cleanup\\\/\"},\"author\":{\"name\":\"Cal Evans\",\"@id\":\"https:\\\/\\\/academy.siteground.com\\\/en\\\/#\\\/schema\\\/person\\\/ac2ec9d82232836e1c87de042cfea852\"},\"headline\":\"WordPress Database Cleanup: Steps and Plugins To Keep Your Site Unpolluted and Fast\",\"datePublished\":\"2021-08-26T08:08:38+00:00\",\"dateModified\":\"2025-04-02T08:57:13+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/academy.siteground.com\\\/en\\\/wordpress-database-cleanup\\\/\"},\"wordCount\":2026,\"commentCount\":4,\"publisher\":{\"@id\":\"https:\\\/\\\/academy.siteground.com\\\/en\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/academy.siteground.com\\\/en\\\/wordpress-database-cleanup\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/academy.siteground.com\\\/en\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2021\\\/08\\\/blog-post-1200x600-1-1.jpg\",\"articleSection\":[\"WordPress\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/academy.siteground.com\\\/en\\\/wordpress-database-cleanup\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/academy.siteground.com\\\/en\\\/wordpress-database-cleanup\\\/\",\"url\":\"https:\\\/\\\/academy.siteground.com\\\/en\\\/wordpress-database-cleanup\\\/\",\"name\":\"WordPress Database Cleanup - SiteGround\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/academy.siteground.com\\\/en\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/academy.siteground.com\\\/en\\\/wordpress-database-cleanup\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/academy.siteground.com\\\/en\\\/wordpress-database-cleanup\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/academy.siteground.com\\\/en\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2021\\\/08\\\/blog-post-1200x600-1-1.jpg\",\"datePublished\":\"2021-08-26T08:08:38+00:00\",\"dateModified\":\"2025-04-02T08:57:13+00:00\",\"description\":\"Cleaning up your WordPress database is a key part of your site optimization. Learn which steps to take and which plugins to use to keep it unpolluted\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/academy.siteground.com\\\/en\\\/wordpress-database-cleanup\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/academy.siteground.com\\\/en\\\/wordpress-database-cleanup\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/academy.siteground.com\\\/en\\\/wordpress-database-cleanup\\\/#primaryimage\",\"url\":\"https:\\\/\\\/academy.siteground.com\\\/en\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2021\\\/08\\\/blog-post-1200x600-1-1.jpg\",\"contentUrl\":\"https:\\\/\\\/academy.siteground.com\\\/en\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2021\\\/08\\\/blog-post-1200x600-1-1.jpg\",\"width\":1200,\"height\":600,\"caption\":\"Wordpress Database Cleanup\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/academy.siteground.com\\\/en\\\/wordpress-database-cleanup\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/academy.siteground.com\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"WordPress Database Cleanup: Steps and Plugins To Keep Your Site Unpolluted and Fast\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/academy.siteground.com\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/academy.siteground.com\\\/en\\\/\",\"name\":\"SiteGround Academy\",\"description\":\"The SiteGround academy provides a wide variety of tips, tools, and resources related to WordPress, web performance, website optimization and site security.\",\"publisher\":{\"@id\":\"https:\\\/\\\/academy.siteground.com\\\/en\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/academy.siteground.com\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/academy.siteground.com\\\/en\\\/#organization\",\"name\":\"SiteGround\",\"url\":\"https:\\\/\\\/academy.siteground.com\\\/en\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/academy.siteground.com\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/academy.siteground.com\\\/en\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2025\\\/01\\\/Siteground-Logo-on-white.jpg\",\"contentUrl\":\"https:\\\/\\\/academy.siteground.com\\\/en\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2025\\\/01\\\/Siteground-Logo-on-white.jpg\",\"width\":1200,\"height\":400,\"caption\":\"SiteGround\"},\"image\":{\"@id\":\"https:\\\/\\\/academy.siteground.com\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/siteground\",\"https:\\\/\\\/x.com\\\/siteground\",\"https:\\\/\\\/www.instagram.com\\\/siteground\\\/\",\"https:\\\/\\\/www.youtube.com\\\/@siteground\"],\"description\":\"The SiteGround academy provides a wide variety of tips, tools, and resources related to WordPress, web performance, website optimization and site security.\",\"foundingDate\":\"2004-03-22\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"501\",\"maxValue\":\"1000\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/academy.siteground.com\\\/en\\\/#\\\/schema\\\/person\\\/ac2ec9d82232836e1c87de042cfea852\",\"name\":\"Cal Evans\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/6db3157414eef0b296f19e7ee76dffbe3280ba0e04d11c3a23c2db4523fd4948?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/6db3157414eef0b296f19e7ee76dffbe3280ba0e04d11c3a23c2db4523fd4948?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/6db3157414eef0b296f19e7ee76dffbe3280ba0e04d11c3a23c2db4523fd4948?s=96&d=mm&r=g\",\"caption\":\"Cal Evans\"},\"sameAs\":[\"https:\\\/\\\/www.linkedin.com\\\/in\\\/calevans\\\/\"],\"url\":\"https:\\\/\\\/academy.siteground.com\\\/en\\\/author\\\/calevans\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"WordPress Database Cleanup - SiteGround","description":"Cleaning up your WordPress database is a key part of your site optimization. Learn which steps to take and which plugins to use to keep it unpolluted","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/academy.siteground.com\/en\/wordpress-database-cleanup\/","og_locale":"en_US","og_type":"article","og_title":"WordPress Database Cleanup: Steps and Plugins To Keep Your Site Unpolluted and Fast","og_description":"Cleaning up your WordPress database is a key part of your site optimization. Learn which steps to take and which plugins to use to keep it unpolluted","og_url":"https:\/\/academy.siteground.com\/en\/wordpress-database-cleanup\/","og_site_name":"SiteGround","article_publisher":"https:\/\/www.facebook.com\/siteground","article_published_time":"2021-08-26T08:08:38+00:00","article_modified_time":"2025-04-02T08:57:13+00:00","og_image":[{"url":"https:\/\/newblog.siteground.com\/en\/wp-content\/uploads\/sites\/2\/2021\/08\/fb-1200x630-9.png","type":"","width":"","height":""}],"author":"Cal Evans","twitter_card":"summary_large_image","twitter_image":"https:\/\/newblog.siteground.com\/en\/wp-content\/uploads\/sites\/2\/2021\/08\/fb-1200x630-9-1.png","twitter_creator":"@siteground","twitter_site":"@siteground","twitter_misc":{"Written by":"Cal Evans","Est. reading time":"10 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/academy.siteground.com\/en\/wordpress-database-cleanup\/#article","isPartOf":{"@id":"https:\/\/academy.siteground.com\/en\/wordpress-database-cleanup\/"},"author":{"name":"Cal Evans","@id":"https:\/\/academy.siteground.com\/en\/#\/schema\/person\/ac2ec9d82232836e1c87de042cfea852"},"headline":"WordPress Database Cleanup: Steps and Plugins To Keep Your Site Unpolluted and Fast","datePublished":"2021-08-26T08:08:38+00:00","dateModified":"2025-04-02T08:57:13+00:00","mainEntityOfPage":{"@id":"https:\/\/academy.siteground.com\/en\/wordpress-database-cleanup\/"},"wordCount":2026,"commentCount":4,"publisher":{"@id":"https:\/\/academy.siteground.com\/en\/#organization"},"image":{"@id":"https:\/\/academy.siteground.com\/en\/wordpress-database-cleanup\/#primaryimage"},"thumbnailUrl":"https:\/\/academy.siteground.com\/en\/wp-content\/uploads\/sites\/2\/2021\/08\/blog-post-1200x600-1-1.jpg","articleSection":["WordPress"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/academy.siteground.com\/en\/wordpress-database-cleanup\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/academy.siteground.com\/en\/wordpress-database-cleanup\/","url":"https:\/\/academy.siteground.com\/en\/wordpress-database-cleanup\/","name":"WordPress Database Cleanup - SiteGround","isPartOf":{"@id":"https:\/\/academy.siteground.com\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/academy.siteground.com\/en\/wordpress-database-cleanup\/#primaryimage"},"image":{"@id":"https:\/\/academy.siteground.com\/en\/wordpress-database-cleanup\/#primaryimage"},"thumbnailUrl":"https:\/\/academy.siteground.com\/en\/wp-content\/uploads\/sites\/2\/2021\/08\/blog-post-1200x600-1-1.jpg","datePublished":"2021-08-26T08:08:38+00:00","dateModified":"2025-04-02T08:57:13+00:00","description":"Cleaning up your WordPress database is a key part of your site optimization. Learn which steps to take and which plugins to use to keep it unpolluted","breadcrumb":{"@id":"https:\/\/academy.siteground.com\/en\/wordpress-database-cleanup\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/academy.siteground.com\/en\/wordpress-database-cleanup\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/academy.siteground.com\/en\/wordpress-database-cleanup\/#primaryimage","url":"https:\/\/academy.siteground.com\/en\/wp-content\/uploads\/sites\/2\/2021\/08\/blog-post-1200x600-1-1.jpg","contentUrl":"https:\/\/academy.siteground.com\/en\/wp-content\/uploads\/sites\/2\/2021\/08\/blog-post-1200x600-1-1.jpg","width":1200,"height":600,"caption":"Wordpress Database Cleanup"},{"@type":"BreadcrumbList","@id":"https:\/\/academy.siteground.com\/en\/wordpress-database-cleanup\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/academy.siteground.com\/en\/"},{"@type":"ListItem","position":2,"name":"WordPress Database Cleanup: Steps and Plugins To Keep Your Site Unpolluted and Fast"}]},{"@type":"WebSite","@id":"https:\/\/academy.siteground.com\/en\/#website","url":"https:\/\/academy.siteground.com\/en\/","name":"SiteGround Academy","description":"The SiteGround academy provides a wide variety of tips, tools, and resources related to WordPress, web performance, website optimization and site security.","publisher":{"@id":"https:\/\/academy.siteground.com\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/academy.siteground.com\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/academy.siteground.com\/en\/#organization","name":"SiteGround","url":"https:\/\/academy.siteground.com\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/academy.siteground.com\/en\/#\/schema\/logo\/image\/","url":"https:\/\/academy.siteground.com\/en\/wp-content\/uploads\/sites\/2\/2025\/01\/Siteground-Logo-on-white.jpg","contentUrl":"https:\/\/academy.siteground.com\/en\/wp-content\/uploads\/sites\/2\/2025\/01\/Siteground-Logo-on-white.jpg","width":1200,"height":400,"caption":"SiteGround"},"image":{"@id":"https:\/\/academy.siteground.com\/en\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/siteground","https:\/\/x.com\/siteground","https:\/\/www.instagram.com\/siteground\/","https:\/\/www.youtube.com\/@siteground"],"description":"The SiteGround academy provides a wide variety of tips, tools, and resources related to WordPress, web performance, website optimization and site security.","foundingDate":"2004-03-22","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"501","maxValue":"1000"}},{"@type":"Person","@id":"https:\/\/academy.siteground.com\/en\/#\/schema\/person\/ac2ec9d82232836e1c87de042cfea852","name":"Cal Evans","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/6db3157414eef0b296f19e7ee76dffbe3280ba0e04d11c3a23c2db4523fd4948?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/6db3157414eef0b296f19e7ee76dffbe3280ba0e04d11c3a23c2db4523fd4948?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6db3157414eef0b296f19e7ee76dffbe3280ba0e04d11c3a23c2db4523fd4948?s=96&d=mm&r=g","caption":"Cal Evans"},"sameAs":["https:\/\/www.linkedin.com\/in\/calevans\/"],"url":"https:\/\/academy.siteground.com\/en\/author\/calevans\/"}]}},"_links":{"self":[{"href":"https:\/\/academy.siteground.com\/en\/wp-json\/wp\/v2\/posts\/15008","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/academy.siteground.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/academy.siteground.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/academy.siteground.com\/en\/wp-json\/wp\/v2\/users\/35"}],"replies":[{"embeddable":true,"href":"https:\/\/academy.siteground.com\/en\/wp-json\/wp\/v2\/comments?post=15008"}],"version-history":[{"count":2,"href":"https:\/\/academy.siteground.com\/en\/wp-json\/wp\/v2\/posts\/15008\/revisions"}],"predecessor-version":[{"id":23643,"href":"https:\/\/academy.siteground.com\/en\/wp-json\/wp\/v2\/posts\/15008\/revisions\/23643"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/academy.siteground.com\/en\/wp-json\/wp\/v2\/media\/15011"}],"wp:attachment":[{"href":"https:\/\/academy.siteground.com\/en\/wp-json\/wp\/v2\/media?parent=15008"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/academy.siteground.com\/en\/wp-json\/wp\/v2\/categories?post=15008"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/academy.siteground.com\/en\/wp-json\/wp\/v2\/tags?post=15008"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}