roverctl delete
Delete a resource
Synopsis
Delete a resource defined in a file or directory from the server
By default, a directory passed with -f/--file is processed recursively up to two levels of subdirectories. Only .yaml, .yml and .json files (case-insensitive) are used. Set --max-depth to change the maximum depth: the input directory has depth 0, its subdirectories depth 1, and so on. Files deeper than the limit are ignored. --max-depth=0 includes only files directly inside the input directory; negative values are rejected. Use --recursive=false to process only the input directory regardless of the depth limit. Symlinked subdirectories are not followed.
roverctl delete [flags]
Examples
# Delete resources defined in a single file
roverctl delete -f rover.yaml
# Delete resources from all .yaml, .yml and .json files in a directory and up to two levels of subdirectories
roverctl delete -f ./resources
# Include up to five levels of subdirectories
roverctl delete -f ./resources --max-depth 5
# Delete resources from all .yaml, .yml and .json files directly inside a directory, ignoring subdirectories
roverctl delete -f ./resources --recursive=false
Options
--fail-fast Stop processing on the first error encountered
-f, --file string Path to the file or directory containing resource definitions
-h, --help help for delete
--max-depth int Maximum subdirectory depth; the directory used in -f, --file has depth 0 (must be non-negative) (default 2)
-R, --recursive Process the directory used in -f, --file recursively; use --recursive=false to disable (default true)
Options inherited from parent commands
-d, --debug Enable debug mode
--format string Output format (yaml|json)
--log-format string Log format (json or console)
--log-level string Log level (debug, info, warn, error)
-o, --output string Output file path (default "stdout")
SEE ALSO
- roverctl - Rover Control Plane CLI
Auto-generated
This page was automatically generated from the Rover-CTL source code.