def METHOD_NAME(
    name: str,
    recursive: bool=False,
    version: str=None,
    repo_base_url: str=None,
):
    if not version:
        name, version = name.rsplit(':', 1)
    if not repo_base_url:
        repo_base_url = ctx.cfg.ctx.ocm_repo_base_url
    lookup = cnudie.retrieve.oci_component_descriptor_lookup()
    component_descriptor = lookup(
        component_id=cm.ComponentIdentity(
            name=name,
            version=version,
        ),
        ctx_repo=cm.OciRepositoryContext(baseUrl=repo_base_url),
    )
    oci_client = ccc.oci.oci_client()
    cnudie.METHOD_NAME.remove_component_descriptor_and_referenced_artefacts(
        component=component_descriptor.component,
        oci_client=oci_client,
        lookup=lookup,
        recursive=recursive,
    )