Views:

If you have inactivated your category, but there are still active courses within that category, the library will still display the category.

You will have to inactivate all of the courses to hide that entire category.