Updated on 2022-09-14 GMT+08:00

Removing a Graph

You can use a specific API provided by GES to remove the graph data. The sample code is as follows:

public static void clearGraph(GraphClient graphClient) throws ApiException {
     ClearGraphReq clearGraphReq = new ClearGraphReq();
     clearGraphReq.setGraphName(graphInfo.getGraphName());
     graphClient.clearGraph(clearGraphReq);
}