{"id":41763,"date":"2024-11-24T14:43:30","date_gmt":"2024-11-24T12:43:30","guid":{"rendered":"https:\/\/coma.lv\/2024\/11\/24\/how-to-delete-all-wordpress-comments-in-one-go\/"},"modified":"2024-11-24T14:43:30","modified_gmt":"2024-11-24T12:43:30","slug":"how-to-delete-all-wordpress-comments-in-one-go","status":"publish","type":"post","link":"https:\/\/coma.lv\/en\/2024\/11\/24\/how-to-delete-all-wordpress-comments-in-one-go\/","title":{"rendered":"How to Delete All WordPress Comments in One Go"},"content":{"rendered":"\n<p style=\"text-align: left;\">It is rare, but in some cases a site owner may decide to delete all the comments from their site. In this article we will show how you can do this in one go.<\/p>\n<h2 style=\"text-align: left;\">Before You Delete All Comments in WordPress<\/h2>\n<p style=\"text-align: left;\">There are many scenarios in which a user may really need to delete all the comments from a site. For example, if your site is full of empty comments created to test functionality. First of all, you need to back up your site. Deleting comments is an irreversible action and you will not be able to restore everything once the comments are deleted. That is exactly why you need to make a backup.<\/p>\n<h2 style=\"text-align: left;\">Method One: Delete All Comments on a WordPress Site with a Plugin<\/h2>\n<p style=\"text-align: left;\">First you need to install and activate the <a href=\"https:\/\/wordpress.org\/plugins\/wp-bulk-delete\/\" target=\"_blank\" rel=\"noopener\">WP Bulk Delete<\/a> plugin. After activating it, go to WP Bulk Delete in the dashboard menu and choose Delete Comments. Select the types of comments to delete and click the Delete Comments button.<\/p>\n<p style=\"text-align: left;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-35037 size-full\" src=\"https:\/\/coma.lv\/wp-content\/uploads\/2025\/04\/Ekranuznemums-2025-04-15-043952.jpg\" alt=\"WordPress\" width=\"1030\" height=\"353\" title=\"\" srcset=\"https:\/\/coma.lv\/wp-content\/uploads\/2025\/04\/Ekranuznemums-2025-04-15-043952.jpg 1030w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/04\/Ekranuznemums-2025-04-15-043952-300x103.jpg 300w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/04\/Ekranuznemums-2025-04-15-043952-768x263.jpg 768w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/04\/Ekranuznemums-2025-04-15-043952-705x242.jpg 705w\" sizes=\"auto, (max-width: 1030px) 100vw, 1030px\" \/><\/p>\n<p style=\"text-align: left;\">Now you can go to the comments page and you will see that all comments have been removed from the site.<\/p>\n<h2 style=\"text-align: left;\">Method Two: Delete All Comments on a WordPress Site with phpMyAdmin<\/h2>\n<p style=\"text-align: left;\">You can also quickly delete all WordPress comments using MySQL or <a href=\"https:\/\/coma.lv\/en\/2025\/07\/16\/managing-a-wordpress-database-with-phpmyadmin-a-beginners-guide\/\" target=\"_blank\" rel=\"noopener\">phpMyAdmin<\/a>. This method is recommended for more advanced users. Log in to your hosting&#8217;s cPanel and, under the databases area, click phpMyAdmin.<\/p>\n<p style=\"text-align: left;\"><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/coma.lv\/wp-content\/uploads\/2016\/11\/phpmyadmincpanel-1.jpg\" alt=\"WordPress\" title=\"\"><\/p>\n<p style=\"text-align: left;\">Inside you need to find your WordPress database. You will see a page like this with a bunch of database tables.<\/p>\n<p style=\"text-align: left;\"><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/coma.lv\/wp-content\/uploads\/2016\/11\/emptycommenttables.jpg\" alt=\"WordPress\" title=\"\"><\/p>\n<p style=\"text-align: left;\">Tick the box next to the wpprefix_comments and wpprefix_commentmeta tables. The name of the comments table may differ depending on the prefix you chose when installing WordPress. After selecting the comments tables, find the With selected: drop-down menu below the list of tables and choose Empty from the drop-down menu. phpMyAdmin will now show a warning asking whether you really want to empty these tables.<\/p>\n<p style=\"text-align: left;\"><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/coma.lv\/wp-content\/uploads\/2016\/11\/deletecommentsphpmyadmin.jpg\" alt=\"WordPress\" title=\"\"><\/p>\n<p style=\"text-align: left;\">Click the yes button and this will delete all WordPress comments from your database. You can also delete all WordPress comments using the MySQL console (command line). Just log in to it and enter the following command:<br \/>\n<strong><br \/>\nDELETE FROM wp_commentmeta;<br \/>\nDELETE FROM wp_comments;<\/strong><\/p>\n<hr \/>\n<p style=\"text-align: left;\"><em>Our specialization is WordPress website development and maintenance. Contact us for a free consultation \u2014 <a href=\"mailto:vadim@coma.lv\">vadim@coma.lv<\/a>, <a href=\"tel:+37129394520\">+371 29394520<\/a><\/em><\/p>\n<hr \/>\n","protected":false},"excerpt":{"rendered":"<p>It is rare, but in some cases a site owner may decide to delete all the comments from their site. In this article we will show how you can do this in one go. Before You Delete All Comments in WordPress There are many scenarios in which a user may really need to delete all [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":37987,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1225,1409,1407],"tags":[],"class_list":["post-41763","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress","category-plugins","category-tutorials"],"_links":{"self":[{"href":"https:\/\/coma.lv\/en\/wp-json\/wp\/v2\/posts\/41763","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/coma.lv\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/coma.lv\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/coma.lv\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/coma.lv\/en\/wp-json\/wp\/v2\/comments?post=41763"}],"version-history":[{"count":0,"href":"https:\/\/coma.lv\/en\/wp-json\/wp\/v2\/posts\/41763\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/coma.lv\/en\/wp-json\/wp\/v2\/media\/37987"}],"wp:attachment":[{"href":"https:\/\/coma.lv\/en\/wp-json\/wp\/v2\/media?parent=41763"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/coma.lv\/en\/wp-json\/wp\/v2\/categories?post=41763"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/coma.lv\/en\/wp-json\/wp\/v2\/tags?post=41763"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}