/** * Deletes the file denoted by the path. * * @param path the file path * @param recursive if delete the path recursively. * @return true if the deletion succeed (including the case that the path does not exist in the * first place), false otherwise * @throws IOException if the operation fails */ public synchronized boolean delete(TachyonURI path, boolean recursive) throws IOException { return delete(-1, path, recursive); }
/** * Deletes the file denoted by the file id. * * @param fid file id * @param recursive if delete the path recursively. * @return true if deletion succeed (including the case the file does not exist in the first * place), false otherwise * @throws IOException if the operation fails */ public synchronized boolean delete(long fid, boolean recursive) throws IOException { return delete(fid, TachyonURI.EMPTY_URI, recursive); }