Creating and deleting projects in OpenShift

In OpenShift a project is essentially a Kubernetes namespace enriched with additional annotations and metadata.

To create a project - OpenShift will create and set the project as the current project:

oc new-project my-demo-project --description="My demonstration project" --display-name="Demo Project"
Verify:
oc project
To deploy an application in the current project:
oc new-app --name=my-app --image=openshift/hello-openshift
Verify:
oc get pods
oc get all
oc describe project my-demo-project
To delete the project:
oc delete project my-demo-project
OpenShift will delete the project and all its associated resources.

To verify if the project has been deleted run again:
oc projects
You can do the same operations in the GUI