How do I remove an item from an inactive category?

When a category is inactive, it doesn't get pushed to your storefront, so there is no harm in keeping it associated with a product.

However, if you still want to remove a product from a category, you can use the rule action "Unassign category".