File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
content/en/docs/concepts/workloads/controllers Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -150,14 +150,16 @@ curl -X DELETE localhost:8080/apis/apps/v1/namespaces/default/replicasets/my-rep
150
150
```
151
151
152
152
kubectl also supports cascading deletion.
153
- To delete dependents automatically using kubectl, set ` --cascade ` to true. To
154
- orphan dependents, set ` --cascade ` to false. The default value for ` --cascade `
155
- is true.
153
+
154
+ To delete dependents in the foreground using kubectl, set ` --cascade=foreground ` . To
155
+ orphan dependents, set ` --cascade=orphan ` .
156
+
157
+ The default behavior is to delete dependents in the background i.e. no ` --cascade ` option or ` --cascade=background ` .
156
158
157
159
Here's an example that orphans the dependents of a ReplicaSet:
158
160
159
161
``` shell
160
- kubectl delete replicaset my-repset --cascade=false
162
+ kubectl delete replicaset my-repset --cascade=orphan
161
163
```
162
164
163
165
### Additional note on Deployments
You can’t perform that action at this time.
0 commit comments