'Removes ``category`` and all items that belong to it.'

def remove_category(self, category):

    if (category not in self.items):
        return
    if self.scene():
        for item in self.items[category]:
            self.scene().removeItem(item)
    del self.items[category]
