/** * Delete an entire table. * * @param fiji Fiji instance where the table to delete lives. * @param tableURI URI of the table to delete. * @return tool exit code. * @throws Exception on error. */ private int deleteTable(Fiji fiji, FijiURI tableURI) throws Exception { if (isInteractive() && !inputConfirmation( String.format("Are you sure you want to delete Fiji table '%s'?", tableURI), tableURI.getTable())) { getPrintStream().println("Delete aborted."); return FAILURE; } fiji.deleteTable(tableURI.getTable()); getPrintStream().println(String.format("Fiji table '%s' deleted.", tableURI)); return SUCCESS; }
fiji.deleteTable(tableName);
fiji.deleteTable(tableName);