- API >
- API Resources >
- Global Clusters >
- Delete a Managed Namespace
Delete a Managed Namespace¶
On this page
Note
Groups and projects are synonymous terms. Your {GROUP-ID}
is the
same as your project ID. For existing groups, your group/project ID
remains the same. The resource and corresponding endpoints use the
term groups
.
The Atlas API uses HTTP Digest Authentication. Provide a programmatic API public key and corresponding private key as the username and password when constructing the HTTP request.
For complete documentation on configuring API access for an Atlas project, see Configure Atlas API Access.
Base URL: https://cloud.mongodb.com/api/atlas/v1.0
Delete a managed namespace for a Global Cluster.
Deleting a managed namespace does not delete the collection associated
with the namespace. Use the Data Explorer to delete both the
collection and the managed namespace. Alternatively, use this endpoint
to delete the managed namespace and the mongo
shell to delete the
collection.
Note
Deleting a managed namespace does not unshard the associated collection.
For more information about managed namespaces, see Global Clusters.
Syntax¶
Request Path Parameters¶
Path Element | Required/Optional | Description |
---|---|---|
GROUP-ID |
Required. | The unique identifier for the project that contains the Global Cluster. |
CLUSTER-NAME |
Required. | The name of the Global Cluster. |
Request Query Parameters¶
Name | Type | Description |
---|---|---|
collection |
string | The name of the collection associated with the managed namespace. |
db |
string | The name of the database containing the collection. |
Request Body Parameters¶
This endpoint does not use HTTP request body parameters.
HTTP Response Elements¶
Name | Type | Description |
---|---|---|
customZoneMapping |
document | A comma-separated list of all custom zone mappings defined for the Global Cluster. Atlas automatically maps each location code to the closest geographical zone. Custom zone mappings allow administrators to override these automatic mappings. If your Global Cluster does not have any custom zone mappings, this document is empty. |
managedNamespaces |
array of documents | Each document specifies a namespace for a Global Cluster managed by Atlas. |
managedNamespaces[n].collection |
string | The name of the collection associated with the managed namespace. |
managedNamespaces[n].customShardKey |
string | The custom shard key for the collection. Global Clusters require a compound shard key consisting of
a location field and a user-selected second key, the custom
shard key. |
managedNamespaces[n].db |
string | The name of the database containing the collection. |