Oc delete: Difference between revisions
Jump to navigation
Jump to search
Line 8: | Line 8: | ||
To investigate a resource to be deleted, it may be possible to use [[oc edit]]. | To investigate a resource to be deleted, it may be possible to use [[oc edit]]. | ||
=Deleting with Selectors= | |||
oc delete pod -l 'component=fluentd' | |||
The selector syntax (-l) is similar to [[Oc_get#Selectors|oc get's]]. | |||
=Subcommands= | =Subcommands= |
Revision as of 22:33, 16 October 2017
Internal
Overview
Deletes a resource, possibly specified in YAML or JSON format in a local file.
To investigate a resource to be deleted, it may be possible to use oc edit.
Deleting with Selectors
oc delete pod -l 'component=fluentd'
The selector syntax (-l) is similar to oc get's.
Subcommands
identity
Deletes a user identity.
oc delete identity htpasswd:user1