removeShardFromZone command has the following syntax:
The command takes the following fields:
The name of the shard from which to remove the zone association.
The name of the zone whose association with the shard you want to remove.
removeShardFromZone does not remove ranges associated with the zone.
To completely remove a zone from the cluster, you must run
removeShardFromZone on each shard associated with the zone.
If the shard specified is the last shard associated with the zone, you must ensure there are no remaining shard key ranges associated with the zone. Use
updateZoneKeyRange to remove any existing ranges associated with the zone before running
See the zone manual page for more information on zones in sharded clusters.
For sharded clusters that enforce access control, you must authenticate either as:
a user whose privileges include:
shardscollection in the
tagscollection in the