content_image/794870.jpg content_image/794878.jpg
In order to prune DeploymentConfig  objects that are no longer required by the system due to age and status, administrators can run the following command: 

$ oc adm prune deployments [<options>] 

## Table 8.2. Prune deployments CLI configuration options 

<img src='content_image/794870.jpg'>

To see what a pruning operation would delete: 

$ oc adm prune deployments --orphans --keep-complete=5 --keep-failed=1 \ --keep-younger-than=60m 

To actually perform the prune operation: 

$ oc adm prune deployments --orphans --keep-complete=5 --keep-failed=1 \ --keep-younger-than=60m --confirm 

## 8.4. PRUNING BUILDS 

In order to prune builds that are no longer required by the system due to age and status, administrators can run the following command: 

$ oc adm prune builds [<options>] 

<img src='content_image/794878.jpg'>

