When a category is deleted, the system would update all items and remove reference to the Category/Sub-Category.
Or
The system should not allow the user to delete a category/sub if a product/bundle is bound to it.