flushRouterConfig clears the cached routing table in a mongos instance. Subsequent commands against that mongos will repopulate the routing table cache from the config server as they execute.

Use this command to force the routing table cache to be refreshed from the config server if it contains more recent data. In most cases, this happens automatically. You should need to run flushRouterConfig only after movePrimary has been run.

See also

For when and why flushRouterConfig is run, see Considerations on the movePrimary page.


Do not modify the routing table data except when it is explicitly documented.

flushRouterConfig is an administrative command that is only available for mongos instances.

Call this command using the following form:



New in version 1.8.2.