Skip to content

Instantly share code, notes, and snippets.

@osoner
Created July 27, 2012 10:14
Show Gist options
  • Save osoner/3187273 to your computer and use it in GitHub Desktop.
Save osoner/3187273 to your computer and use it in GitHub Desktop.
Countly - Clean server data
/*
Usage;
$ mongo countly countly.clean.db.js
*/
db.sessions.remove()
db.users.remove()
db.carriers.remove()
db.locations.remove()
db.realtime.remove()
db.app_users.remove()
db.devices.remove()
db.device_details.remove()
db.app_versions.remove()
//remove comments from below lines if you want to start over from server setup
//db.members.remove()
//db.apps.remove()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment