- SEO TOOLS
- Webmaster Tools
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);