delete id in schema mongodb constructor function without routes code example Example: delete collection mongodb db.collection.drop()