OpenShift - Delete Config Maps using the oc delete configmap command
by
Jeremy Canfield |
Updated: October 20 2021
| OpenShift articles
If you are not familiar with the oc command, refer to OpenShift - Getting Started with the oc command.
A config map contains files, variables, and command line options that can be used by one or more applications, as a way to create separation between applications and the files, variables, and command line options being used by the applications.
Issue the oc login command and the oc project command to select the project. The oc get configmaps command will display the config maps in the project. In this example, the project contains three config maps.
~]$ oc get configmaps
NAME DATA AGE
foo 1 44d
bar 1 44d
The oc delete configmaps command will delete every config map.
~]$ oc delete configmaps
Or, a specific config map can be deleted.
~]$ oc delete configmap foo
configmap "foo" deleted
Did you find this article helpful?
If so, consider buying me a coffee over at