def _clear_shell_commands(self):
        exclude_cmds = ['help', 'complete']

        cmds = self.command_manager.commands.copy()
        for k, v in cmds.items():
            if k not in exclude_cmds:
                self.command_manager.commands.pop(k)
dataset/ETHPy150Open openstack/python-mistralclient/mistralclient/shell.py/MistralShell._clear_shell_commands/original