public void rm(String fileOrDir){
  StringBuilder buf=new StringBuilder();
  String command=String.format(ImageServerDialogProperties.getString("cmd.rm"),fileOrDir);
  sendWaitFor(command,defaultTimeout,prompts,buf);
  log.debug(buf.toString());
}

public void rm ( String fileOrDir ) { StringBuilder buf = new StringBuilder ( ) ; String command = String . format ( ImageServerDialogProperties . getString ( "cmd.rm" ) , fileOrDir ) ; sendWaitFor ( command , defaultTimeout , prompts , buf ) ; log . debug ( buf . toString ( ) ) ; }
remove file or directory using ' rm - rf ' command . no error if file or directory don ' t exist .
