github.com/Racer159/jackal@v0.32.7-0.20240401174413-0bd2339e4f2e/docs/2-the-jackal-cli/100-cli-commands/jackal_destroy.md (about) 1 # jackal destroy 2 <!-- Auto-generated by hack/gen-cli-docs.sh --> 3 4 Tears down Jackal and removes its components from the environment 5 6 ## Synopsis 7 8 Tear down Jackal. 9 10 Deletes everything in the 'jackal' namespace within your connected k8s cluster. 11 12 If Jackal deployed your k8s cluster, this command will also tear your cluster down by searching through /opt/jackal for any scripts that start with 'jackal-clean-' and executing them. Since this is a cleanup operation, Jackal will not stop the teardown if one of the scripts produce an error. 13 14 If Jackal did not deploy your k8s cluster, this command will delete the Jackal namespace, delete secrets and labels that only Jackal cares about, and optionally uninstall components that Jackal deployed onto the cluster. Since this is a cleanup operation, Jackal will not stop the uninstalls if one of the resources produce an error while being deleted. 15 16 ``` 17 jackal destroy --confirm [flags] 18 ``` 19 20 ## Options 21 22 ``` 23 --confirm REQUIRED. Confirm the destroy action to prevent accidental deletions 24 -h, --help help for destroy 25 --remove-components Also remove any installed components outside the jackal namespace 26 ``` 27 28 ## Options inherited from parent commands 29 30 ``` 31 -a, --architecture string Architecture for OCI images and Jackal packages 32 --insecure Allow access to insecure registries and disable other recommended security enforcements such as package checksum and signature validation. This flag should only be used if you have a specific reason and accept the reduced security posture. 33 -l, --log-level string Log level when running Jackal. Valid options are: warn, info, debug, trace (default "info") 34 --no-color Disable colors in output 35 --no-log-file Disable log file creation 36 --no-progress Disable fancy UI progress bars, spinners, logos, etc 37 --tmpdir string Specify the temporary directory to use for intermediate files 38 --jackal-cache string Specify the location of the Jackal cache directory (default "~/.jackal-cache") 39 ``` 40 41 ## SEE ALSO 42 43 * [jackal](jackal.md) - DevSecOps for Airgap