When a shared file is deleted, the link-count field in the i-node is decremented by 1. And when the count reaches 0, the directory entry is erased and all disk blocks allocated to the file, along with its i-node entry in the disk i-list, are deallocated