mongo console erase database tables code example Example: delete collection mongodb db.collection.drop()