Skip to content

Commit 0be35d6

Browse files
authored
Update garbage-collection.md
1 parent c15a08a commit 0be35d6

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

content/en/docs/concepts/workloads/controllers/garbage-collection.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,14 +150,16 @@ curl -X DELETE localhost:8080/apis/apps/v1/namespaces/default/replicasets/my-rep
150150
```
151151

152152
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`.
156158

157159
Here's an example that orphans the dependents of a ReplicaSet:
158160

159161
```shell
160-
kubectl delete replicaset my-repset --cascade=false
162+
kubectl delete replicaset my-repset --cascade=orphan
161163
```
162164

163165
### Additional note on Deployments

0 commit comments

Comments
 (0)