basic oc command

Show the project

oc project

If you have access to multiple projects, use the following syntax to switch to a particular project by specifying the project name:

$ oc project <project_name>

Theoc statuscommand shows a high level overview of the project currently in use

oc status

Delete the application and all the config in the project

To delete

oc delete all -l app=<generated name>

Example

oc delete all -l app=singsample

result

deploymentconfig "singsample" deleted
buildconfig "singsample" deleted
imagestream "singsample" deleted
route "singsample" deleted
pod "singsample-5-wplvv" deleted
service "singsample" deleted

results for ""

    No results matching ""