Skip to main content
Version: v3.x

DDN CLI: ddn model remove

Removes Models (and related metadata) in the local metadata.

Synopsis

Removes Models (and related metadata) in the local metadata

ddn model remove <model-name> [flags]

Examples

# Remove all Models using the subgraph set in current context
ddn model remove "*"

# Remove the Model "Album" in the "app" Subgraph
ddn model remove Album --subgraph ./app/subgraph.yaml

# Remove all the Models in the Subgraph "app"
ddn model remove "*" --subgraph ./app/subgraph.yaml

# Remove Models filtered by glob pattern in the Subgraph "app"
ddn model remove "user*" --subgraph ./app/subgraph.yaml

Options

    --ci                Disables the use of context
-c, --context string Name of the context to use. (default <current_context>)
-h, --help help for remove
--pattern string Pattern to detect targets. Can be 'glob' or 'literal'. (default "glob")
--subgraph string Path to Subgraph 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

  • ddn model - Perform Model related operations