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

Clearing a Graph

You can call a GES API to clear 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);
}