1. Delete the sample apps.
      kubectl delete ns tracks
    kubectl delete ns users
    kubectl delete ns pets
    kubectl delete ns store
    kubectl delete -f https://raw.githubusercontent.com/solo-io/gloo-mesh-use-cases/main/gloo-gateway/portal/frontend-deployment.yaml
      
  2. Get all of the Gloo Portal-related custom resources.
      kubectl get apidocs,ratelimitserverconfigs,RatelimitConfigs,ratelimitserversettings,ratelimitclientconfigs,ratelimitpolicies,extauthpolicies,extauthserver,routetables,portals,portalgroups,virtualgateways -A
      
  3. Delete the custom resources, such as the following example.
      kubectl delete -n gloo-mesh-gateways RouteTable tracks-rt
    kubectl delete -n gloo-mesh-gateways RouteTable petstore-rt
    kubectl delete -n gloo-mesh-gateways RouteTable api-example-com-rt
    kubectl delete -n gloo-mesh-gateways RouteTable dev-portal-rt
    kubectl delete -n gloo-mesh-gateways RouteTable portal-frontend
    kubectl delete -n gloo-mesh-gateways VirtualGateway istio-ingressgateway-portal
    kubectl delete -n default ExtAuthPolicy api-key-auth
    kubectl delete -n gloo-mesh ExtAuthPolicy oidc-auth
    kubectl delete -n default Secret user1
    kubectl delete -n gloo-mesh Secret oauth
    kubectl delete -n gloo-mesh RateLimitClientConfig usage-plans
    kubectl delete -n gloo-mesh RateLimitServerConfig usage-plans
    kubectl delete -n default RateLimitPolicy tracks-rate-limit
    kubectl delete -n gloo-mesh Portal developer-portal
    kubectl delete -n gloo-mesh PortalGroup petstore-group
    kubectl delete -n gloo-mesh ExtAuthServer ext-auth-server
    kubectl delete -n gloo-mesh ExtAuthPolicy oauth-okta
    kubectl delete -n gloo-mesh Secret portal-oauth-secrets
      
  4. Remove your Okta OIDC app.
    1. Open the Okta dashboard and select Applications > Applications from the menu.
    2. Find your Okta OIDC app.
    3. Click the gear icon and from the drop-down menu, select Deactivate.