public static void deleteFile(File file) throws AdeUsageException {
  if (!file.delete()) {
    throw new AdeUsageException(FAILED_DELETING_FILE + file.getPath());
  }
}

public static void deleteFile ( File file ) throws AdeUsageException { if ( ! file . delete ( ) ) { throw new AdeUsageException ( FAILED_DELETING_FILE + file . getPath ( ) ) ; } }
delete a file from file system .
