adding recursive remove of namespaces