Skip to main content
Version: v3.x (DDN)

DDN CLI: ddn subgraph delete

Delete a Subgraph, its corresponding Connectors and all its associated metadata objects from local project metadata.

Synopsis

Delete a Subgraph, its corresponding Connectors and all its associated metadata objects from local project metadata

ddn subgraph delete <subgraph-name> [flags]

Alias: rm, remove

Examples

# Removes subgraph corresponding to the subgraph config file, its dependent metadata objects, and associated connectors from the local project,removes subgraph from the supergraph config set in context
ddn subgraph delete --subgraph ./foo/subgraph.yaml

# Removes subgraph corresponding to the subgraph config file, its dependent metadata objects, and associated connectors from the local project, removes subgraph from the supergraph config "./supergraph.yaml"
ddn subgraph delete --subgraph app/subgraph.yaml --supergraph ./supergraph.yaml

Options

    --ci                  Disables the use of context
-c, --context string Name of the context to use. (default <current_context>)
-h, --help help for delete
--subgraph string Path to Subgraph config file (required)
--supergraph string Path to Supergraph config file

Options inherited from parent operations

--log-level string   Log level. Can be DEBUG, WARN, INFO, ERROR, or FATAL. (default "INFO")
--no-prompt Do not prompt for required but missing flags
--out string Output format. Can be table, json or yaml. (default "table")
--timeout int Request timeout in seconds [env: HASURA_DDN_TIMEOUT] (default 100)

Parent operation