'Removes all Command Sets from the handler except the default one
(use `self.remove_default` to remove that).'

def clear(self):

    self.cmdset_stack = [self.cmdset_stack[0]]
    storage = self.obj.cmdset_storage
    if storage:
        storage = storage[0]
        self.obj.cmdset_storage = storage
    self.update()
