OC-ADM-PRUNE(1)
π OC-ADM-PRUNE(1) β the group-chat guide π
okay so bestie, welcome to OC ADM(1), like, the Openshift CLI User Manuals page for oc adm prune, dated June 2016 β¨. This is the parent command of the whole prune fam, and she's here to help you clean up. Let's go π
β¨ NAME β¨
oc adm prune β remove older versions of resources from the server π§Ήπ
πΈ SYNOPSIS πΈ
oc adm prune [OPTIONS]
π¦ DESCRIPTION π¦
Remove older versions of resources from the server. Yes, that's the whole vibe: declutter the server, no cap ποΈβ¨
The commands under here let administrators manage the older versions of resources on the system by removing them. Like, spring cleaning but for your cluster, and honestly? iconic π
π OPTIONS INHERITED FROM PARENT COMMANDS π
These bad boys come down from the parent command β you didn't ask for them, they just show up like your mom's friend at the mall π
--as=""β the username to impersonate for the operation. Could be a regular user or a service account in a namespace π«Ά--as-group=[]β group to impersonate for the operation. You can repeat this flag to specify multiple groups, slay π--as-uid=""β the UID to impersonate for the operation.--as-user-extra=[]β user extras to impersonate for the operation. Repeatable, so you can specify multiple values for the same key β¨--cache-dir="/homeless-shelter/.kube/cache"β the default cache directory. That path is literally the default, don't come for me π--certificate-authority=""β path to a cert file for the certificate authority π--client-certificate=""β path to a client certificate file for TLS.--client-key=""β path to a client key file for TLS.--cluster=""β the name of the kubeconfig cluster to use.--context=""β the name of the kubeconfig context to use.--disable-compression=falseβ iftrue, opt out of response compression for all requests to the server.--insecure-skip-tls-verify=falseβ iftrue, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure β οΈ like bestie please be careful--kubeconfig=""β path to the kubeconfig file to use for CLI requests.--kuberc=""β path to the kuberc file to use for preferences. You can disable this by exporting theKUBECTL_KUBERC=falsefeature gate or by turning off the feature withKUBERC=off.--match-server-version=falseβ require the server version to match the client version.-n,--namespace=""β if present, the namespace scope for this CLI request.--profile="none"β name of the profile to capture. One of(none|cpu|heap|goroutine|threadcreate|block|mutex)π--profile-output="profile.pprof"β name of the file to write the profile to.--request-timeout="0"β the length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g.1s,2m,3h). A value of zero means don't timeout requests β³-s,--server=""β the address and port of the Kubernetes API server.--tls-server-name=""β server name to use for server certificate validation. If it's not provided, the hostname used to contact the server is used.--token=""β bearer token for authentication to the API server ποΈ--user=""β the name of the kubeconfig user to use.--warnings-as-errors=falseβ treat warnings received from the server as errors and exit with a non-zero exit code π
π₯ SEE ALSO π₯
the whole squad, fr fr:
oc-adm(1)oc-adm-prune-auth(1)oc-adm-prune-builds(1)oc-adm-prune-deployments(1)oc-adm-prune-groups(1)oc-adm-prune-images(1)oc-adm-prune-renderedmachineconfigs(1)
π HISTORY π
June 2016, Ported from the Kubernetes man-doc generator. vintage β¨
ok that's the whole page, go forth and prune responsibly bestie π«Άπ
and that's a wrap π β brought to you by the Openshift girlies over at the Openshift CLI User Manuals, stamped June 2016, page OC ADM(1), periodt π
β
π¦ where this page comes from
- nixpkgs unstable: openshift 4.22.0-202605222050
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms