in reply to Re^2: Deleting or unlinking a file
in thread Deleting or unlinking a file

"what actually does unlink do?"

unlink explains what it does and how to check for failures.