Skip to content

nschema destroy

Drop all managed schema objects from the target database. Prompts for confirmation before making changes unless --auto-approve is given.

Terminal window
nschema destroy

When a state store is configured it is refreshed after the teardown.

  • --scope <name> — limit the teardown to specific namespaces. May be repeated.
  • --auto-approve — skip the confirmation prompt. Required for non-interactive runs.

Like a declined apply, a declined destroy makes no changes and exits 1.