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

I just migrated to worpress and want to remove all of the 'uncategorized' categories, since all of my posts are now all categorized. Is there a way to do this easily?

share|improve this question

Yes and no. The main 'uncategorized' category is the main one built into the core, and shouldn't be removed. You can rename it to something else. If they are still attached to the posts, then you could delete it from the database tables directly.

share|improve this answer
I always asked myself why that is... . – hakre Aug 27 '10 at 22:47
It's so that permalink structures with %category% in them will always work. – scribu Feb 18 '11 at 13:49

Choose a different category as your default category under Settings > Writing. Then you will be able to delete the category "uncategorised".

share|improve this answer
First of all, that function has been around since WP 2.0. Most importantly, it won't allow you to delete the default category, which is what the OP is trying to do. – scribu Feb 18 '11 at 13:47
edited my answer above - deleting the default 'uncategorised' category is possible by doing this. also, deleting a category will remove it from all posts across the site. no direct db editing required :-) – Innate Feb 23 '11 at 8:35

As far as I know this is not possible via the GUI. That could be done by a little script that queries all posts that have more than one category and the "uncategorized" category and then removing the "uncategorized" category. I'm working on it.

share|improve this answer
Still working on it, the Taxnomy API is somehow inflexible when you want to remove something - e.g. a single category - and it does not make fun to work with it. – hakre Aug 25 '10 at 9:15
You don't have to work on this for me. My blog isn't that big, so I just went through and manually updated the categories. – Mark Aug 26 '10 at 13:45
well in the end I was curious on how to remove cats. but well, did not get far. there was different stuff for the day. – hakre Aug 27 '10 at 1:40

Your Answer


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