implemented deletion of link