Java .War file deletion
<p>I have a .war file in my File system.I tried to delete as follows,</p>

<pre><code>private void deleteWar(File warFile){       
 if(warFile.list().length != 0){
    String files[] = warFile.list();
    for (String temp : files) {                 
            File fileDelete = new File(warFile, temp);                  
            deleteWar(fileDelete);
    }               
    if(warFile.list().length==0){
        warFile.delete();
        System.out.println("Directory is deleted : " + warFile.getAbsolutePath));        
         }
     }              
 }
</code></pre>

<p>but i couldnt able to delete .war file as java.io.File.So is there any way to delete a .war file.</p>

<p>Thanks</p>
