(graph_identifier: str)
| 115 | |
| 116 | |
| 117 | def delete_graph_by_id(graph_identifier: str) -> str: |
| 118 | context = get_current_context() |
| 119 | with graphscope.flex.rest.ApiClient( |
| 120 | graphscope.flex.rest.Configuration(context.coordinator_endpoint) |
| 121 | ) as api_client: |
| 122 | api_instance = graphscope.flex.rest.GraphApi(api_client) |
| 123 | return api_instance.delete_graph_by_id(graph_identifier) |
| 124 | |
| 125 | |
| 126 | def get_graph_id_by_name(name_or_id: str): |