def METHOD_NAME() -> None:
    """Detach UA token (ua will update package lists)."""
    try:
        with emit.open_stream("Detach UA token") as stream:
            subprocess.check_call(
                ["ua", "detach", "--assume-yes"], stdout=stream, stderr=stream
            )
    except subprocess.CalledProcessError as error:
        raise UATokenDetachError from error