def METHOD_NAME(args):
    compiler_spec = spack.spec.CompilerSpec(args.compiler_spec)
    candidate_compilers = spack.compilers.compilers_for_spec(compiler_spec, scope=args.scope)
    if not candidate_compilers:
        tty.die("No compilers match spec %s" % compiler_spec)
    if not args.all and len(candidate_compilers) > 1:
        tty.error(f"Multiple compilers match spec {compiler_spec}. Choose one:")
        colify(reversed(sorted([c.spec.display_str for c in candidate_compilers])), indent=4)
        tty.msg("Or, use `spack compiler remove -a` to remove all of them.")
        sys.exit(1)
    for current_compiler in candidate_compilers:
        spack.compilers.remove_compiler_from_config(current_compiler.spec, scope=args.scope)
        tty.msg(f"{current_compiler.spec.display_str} has been removed")