--all | — | Delete all resources, in the namespace of the specified resource types. |
-A, --all-namespaces | — | If present, list the requested object(s) across all namespaces. Namespace in current context is ignored even if specified with --namespace. |
--cascade | string | Must be "background", "orphan", or "foreground". Selects the deletion cascading strategy for the dependents. Defaults to background. (default "background") |
--dry-run | string | Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. (default "none") |
--field-selector | string | Selector (field query) to filter on, supports =, ==, and !=. |
-f, --filename | strings | Containing the resource to delete. |
--force | — | If true, immediately remove resources from API and bypass graceful deletion. Requires confirmation. |
--grace-period | int | Period of time in seconds given to the resource to terminate gracefully. Ignored if negative. Set to 1 for immediate shutdown. Can only be set to 0 when --force is true. (default -1) |
-h, --help | — | Help for delete. |
--ignore-not-found | — | Treat “resource not found” as a successful delete. Defaults to true when --all is specified. |
-i, --interactive | — | If true, delete resource only when user confirms. |
-k, --kustomize | string | Process a kustomization directory. This flag can’t be used together with -f or -R. |
--now | — | If true, resources are signaled for immediate shutdown (same as --grace-period=1). |
-o, --output | string | Output mode. Use "-o name" for shorter output (resource/name). |
--raw | string | Raw URI to DELETE to the server. Uses the transport specified by the kubeconfig file. |
-R, --recursive | — | Process the directory used in -f, --filename recursively. |
-l, --selector | string | Selector (label query) to filter on, supports =, ==, !=, in, notin. |
--timeout | duration | The length of time to wait before giving up on a delete; zero means determine a timeout from the size of the object. |
--wait | — | If true, wait for resources to be gone before returning. This waits for finalizers. (default true) |