public static void delFile(String delFileName) throws ConfigurationException {
  File delFile=new File(delFileName);
  if (delFile.exists() && delFile.canWrite()) {
    delFile.delete();
  }
 else {
    throw new ConfigurationException("Can't delete file because it is not writeable. File=" + delFileName);
  }
}

public static void delFile ( String delFileName ) throws ConfigurationException { File delFile = new File ( delFileName ) ; if ( delFile . exists ( ) && delFile . canWrite ( ) ) { delFile . delete ( ) ; } else { throw new ConfigurationException ( "Can't delete file because it is not writeable. File=" + delFileName ) ; } }
deletes a specific file
