from pathlib import Path


def unlinkChildren(parent: Path) -> int:
	"""Removes all symlinks that are immediate children of parent dir.

	:param parent: The parent directory
	:return: Count of removed symlinks
	"""
	removedCount = 0
	for child in parent.glob("*"):
		if child.is_symlink():
			child.unlink()
			removedCount += 1
	return removedCount