5.4.15 Dropping a Property Graph
To drop a property graph from the database, use the OraclePropertyGraphUtils.dropPropertyGraph
method. This method has two parameters, the connection information and the graph name. For example:
// Drop the graph
Oracle oracle = new Oracle(jdbcUrl, username, password);
OraclePropertyGraphUtils.dropPropertyGraph(oracle, graphName);
You can also drop a property graph using the PL/SQL API. For example:
EXECUTE opg_apis.drop_pg('my_graph_name');
Parent topic: Using Java APIs for Property Graph Data