from pathlib import Path


def rmlink_safe(linkpath: Path):
    """Remove the linkpath only if it is a symbolic link."""
    if linkpath.is_symlink():
        linkpath.unlink()
    if linkpath.exists():
        print(f"'{linkpath}' is not a symbolic link; it will not be replaced.")
        return False
    return True