def METHOD_NAME(self, command: Command) -> None:
    if command.name in self.commands:
        del self.commands[command.name]
        for alias in command.aliases:
            del self.commands_aliases[alias]
    else:
        raise KeyError(f"Command '{command.name}' not found in registry.")