Delete - WunderGraph

Usage

npx wgc federated-graph delete <name> [-f, --force]

Delete is an irreversible action. It will delete the entire federated graph, including versions, schema checks, etc. It will not delete the associated subgraphs.

Contract Graph behavior: Deleting a federated graph will delete all associated contract graphs. Deleting a contract graph has no effect on the source federated graph.

Description

The npx wgc federated-graph delete command allows you to delete a federated graph on the Cosmo platform’s control plane. Deleting a federated graph will remove its configuration and associated resources. Use this command with caution, as the action cannot be undone.

Parameters

Options

-n, --namespace : The namespace of the federated graph (Default: “default”).

-f, --force

An optional flag that allows you to force delete the federated graph without being prompted for confirmation. Use this option if you want to delete the federated graph without additional prompts.

Examples

npx wgc federated-graph delete production

Delete the federated graph named “production”.

npx wgc federated-graph delete production -f

Force delete the federated graph named “production” without confirmation.

Notes