how to remove all data in collection mongodb mongoose code example
Example: remove everything from mongodb databaase mongoose
await Challenge.deleteMany({})
await Own.deleteMany({})
await User.deleteMany({})
await Challenge.deleteMany({})
await Own.deleteMany({})
await User.deleteMany({})