instead of 777 what is the min. permission for a file so the unlink() function can work?
200 gives the file write permissions to the user and thus the ability to delete it. The file won't be able to be read, as there's no read bit set.