Make delete_namespace work for very large namespaces