Forcefully deleting a file using c++ in linux

view story

http://stackoverflow.com – I have a code in c++ running on linux server. In the code, I am using function unlink(filename) to delete a file. Temporary files getting generated by the code itself are getting deleted successfully. But the files that I am putting manually, my code is unable to delete them. What could be the reason? (HowTos)