jstests/multiVersion/genericBinVersion/keystring_index.js
// Drop all user created collections in a database.
Drop all user created collections in a database.
Drop all user created collections in a database .
function dropAllUserCollections(testDb) {
    testDb.getCollectionNames().forEach((collName) => {
        if (!collName.startsWith("system.")) {
            testDb[collName].drop();
        }
    });
}
function dropAllUserCollections ( testDb ) { testDb . getCollectionNames ( ) . forEach ( ( collName ) => { if ( ! collName . startsWith ( "system." ) ) { testDb [ collName ] . drop ( ) ; } } ) ; }
Drop all user created collections in a database.
Drop all user created collections in a database .