On this page
Removes all cached query plans for a collection.
This page documents a
mongoshmethod. This is not the documentation for database commands or language-specific drivers, such as Node.js.
For the database command, see the
For MongoDB API drivers, refer to the language-specific MongoDB driver documentation.
For the legacy
mongoshell documentation, refer to the documentation for the corresponding MongoDB Server release:
The method is only available from the
plan cache objectof a specific collection; i.e.
For example, to clear the cache for the
On systems running with
authorization, a user must have access that