Navigation
This version of the documentation is archived and no longer supported.

sh.removeShardTag()

sh.removeShardTag(shard, tag)

New in version 2.2.

Parameters:
  • shard (string) – Specifies the name of the shard that you want to remove a tag from.
  • tag (string) – Specifies the name of the tag that you want to remove from the shard.

Removes the association between a tag and a shard.

Always issue sh.removeShardTag() when connected to a mongos instance.