Deleting/Removing Namespaces

You can either delete a namespace permanently or remove it from the current project.

TOC

Deleting Namespaces

Delete Namespace: Permanently deletes a namespace and all resources within it (e.g., Pods, Services, ConfigMaps). This action cannot be undone and releases allocated resource quotas.

kubectl delete namespace <namespace-name>

Removing Namespaces

Remove Namespace: Removing a namespace from the current project without deleting its resources. The namespace remains in the cluster and can be imported into other projects via Import Namespace.

Note

  • This feature is exclusive to the .
  • Kubernetes does not natively support "removing" namespaces from projects.
kubectl label namespace <namespace-name> cpaas.io/project- --overwrite