scripts.3.0.0.6-remove-ALL-view-and-defaultView-field.js Maven / Gradle / Ivy
The newest version!
print('Remove default view "ALL" and "defaultView" field from others views');
db.views.remove({'_id': 'all'});
db.views.update({}, {$unset: {'defaultView': ''}}, false, true);