WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

is there a way to remove the category from the database?

I just moving my old wordpress blog (that has the category in url), to new domain (without category).

I change everything except the category. Even i don't know where it is stored in database :(


Problem is resolved, I added the answer below so that it will help to others.

share|improve this question
are you asking to remove category from url? – ahmetlutfu Apr 27 '14 at 11:42
yes, but from the database. I want to complete remove the category – jogesh_pi Apr 27 '14 at 11:48
From url use "no category base" plugin.i do not know how to remove from database. – ahmetlutfu Apr 27 '14 at 12:04
up vote 0 down vote accepted

It is done through the following query:

delete from `wp_terms` where `term_id` in ( SELECT `term_id`
    FROM `wp_term_taxonomy`
    WHERE `taxonomy` = 'category' ) and `term_id` not like 1

This query deleted all the category except the default. Hope this helps to the others.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.