File.class - Problem with SecurityManager

hi,

I m facing a problem in production, where sometimes my application was not able to delete the previous processed data files. The following piece of code is used for deletion. It is working properly, once in a file the files are not deleted. so i m not able to figure out the actual cause of the problem. The following code is used. can any one help me on this issue ?