deleting multiple items with a single route express.js mongoose code example
Example 1: remove everything from mongodb databaase mongoose
await Challenge.deleteMany({})
await Own.deleteMany({})
await User.deleteMany({})
Example 2: clean collection mongoose
await Model.deleteMany();