I\'ve tried
db.users.remove(*)
Although it returns an error so how do I go about clearing all records?
Delete all documents from a collection in cmd:
cd C:\Program Files\MongoDB\Server\4.2\bin mongo use yourdb db.yourcollection.remove( { } )