Written unlink function