DROP_KNOWLEDGE_GRAPH

Use the DBMS_AI_GRAPHRAG.DROP_KNOWLEDGE_GRAPH procedure to drop a knowledge graph.

Purpose

This procedure drops a knowledge graph and removes its associated graph data, metadata, and automatic maintenance objects. It preserves the source tables and their data.

Syntax

DBMS_AI_GRAPHRAG.DROP_KNOWLEDGE_GRAPH (
    kg_name  IN VARCHAR2
);

Parameters

Parameter Description
kg_name Name of the knowledge graph to drop.

Example

BEGIN
    DBMS_AI_GRAPHRAG.DROP_KNOWLEDGE_GRAPH(
        kg_name => 'BOOKS_KG'
    );
END;
/