All I could find over the internet for this is mostly suggesting
db.disableFreeMonitoring()
- which is a admin database monitoring controldb.collection.remove()
- but this deletes all the documents (of course based on the filter provided as well) anddb.collection.drop()
- which deletes all the documents and indexes as an optimized approach over removing all.
Is there a way, I can keep the collection or database intact but at the same time disable any connection/query to lookup data from it? (I am coming from the point where disable
and enable
are commands in HBase actually.)