8 Deleting the OHS Container

Learn how to delete the Oracle HTTP Server (OHS) container.

The following commands show how to remove the OHS container, OHS nodeport service, ConfigMaps, secrets, and namespace:
  1. Run the following command to delete the OHS nodeport service:
    kubectl delete -f $MYOHSFILES/ohs_service.yaml
  2. Run the following command to delete the OHS container:
    kubectl delete -f $MYOHSFILES/ohs.yaml
  3. Run the following commands to delete any configmaps you have created, for example:
    kubectl delete cm -n ohsns ohs-config
    kubectl delete cm -n ohsns ohs-httpd
    kubectl delete cm -n ohsns ohs-htdocs
    kubectl delete cm -n ohsns ohs-myapp
    kubectl delete cm -n ohsns webgate-config
    kubectl delete cm -n ohsns webgate-wallet
    kubectl delete cm -n ohsns ohs-wallet
  4. Run the following command to delete the secrets:
    kubectl delete secret regcred -n ohsns
    kubectl delete secret ohs-secret -n ohsns
  5. Run the following command to delete the namespace:
    kubectl delete namespace ohsns