async def remove_connection(self: 'Commands', name: str, plugin=None) -> str:
    """
    Remove a connection by name.
    arg:str:name:connection name, use list_connections to see all connections
    """
    plugin.remove_connection(name)
    return f"removed connection {name}"

    Remove a connection by name.
    arg:str:name:connection name, use list_connections to see all connections
    
electrum/plugins/nwc/__init__.py