Skip to content

Instantly share code, notes, and snippets.

@JeremyPlease
Created June 22, 2017 20:46
Show Gist options
  • Save JeremyPlease/b29c3bbd5b5d33b363cd7ee04f5535fc to your computer and use it in GitHub Desktop.
Save JeremyPlease/b29c3bbd5b5d33b363cd7ee04f5535fc to your computer and use it in GitHub Desktop.
Delete All Mixpanel Profiles
./node_modules/.bin/engage -p '$distinct_id' -k MIXPANEL_KEY -s MIXPANEL_SECRET | jq -c -M '[.[] | {"$distinct_id","$delete":"","$ignore_alias":true}]' >> todelete.json;
cat todelete.json | ./node_modules/.bin/engagepost -k MIXPANEL_KEY -s MIXPANEL_SECRET -t MIXPANEL_TOKEN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment