How to Delete Unused Tags from WordPress Site

Add Tool

Delete Unused Tags from WordPress Site


Delete Unused Tags from WordPress Site

Tags are used for search engine optimization. We create tags for post but it may be unused. So we should delete unused tags forum our database to save some database space. You can delete this unused tags form WordPress tags sections. But it will take many time to delete. If you want you can do it in second by adding some MySQL query in your database. Before doing this you should backup your database. After backing up your database add the following codes in your SQL options and click on Go Button. Like the below image.

DELETE FROM wp_terms WHERE term_id IN (SELECT term_id FROM wp_term_taxonomy WHERE count = 0 );
DELETE FROM wp_term_taxonomy WHERE term_id not IN (SELECT term_id FROM wp_terms);
DELETE FROM wp_term_relationships WHERE term_taxonomy_id not IN (SELECT term_taxonomy_id FROM wp_term_taxonomy);

Tags: Database, Delete Unused Tags, how to mysql, MySQL, remove all tags, sql, theme development, WordPress, wordpress database, WordPress mysql
Payza

About Masum Billah

Delete Unused Tags from WordPress Site 1stWebSuite website seo tool is a free website ranking tool site provides a lot of on page and off page seo useful tools for you. On this site, we have a large number of website ranking tools


SIGN UP TO GET UPDATE TO YOUR INBOX




Discuss about: How to Delete Unused Tags from WordPress Site


adf.ly