Avoid Mixpanel overage charges by identifying and deleting incomplete user profiles.
This script assumes you've exported a CSV of your Mixpanel users via the Mixpanel UI, as I'm too lazy to write a script to do this for you.
Install and run this bot via any of the 3 methods below:
Installation via requirements.txt
:
$ git clone https://github.com/toddbirchard/mixpanel-delete-profiles.git
$ cd mixpanel-delete-profiles
$ python3 -m venv myenv
$ source myenv/bin/activate
$ pip3 install -r requirements.txt
$ python3 main.py
Installation via Pipenv:
$ git clone https://github.com/toddbirchard/mixpanel-delete-profiles.git
$ cd mixpanel-delete-profiles
$ pipenv shell
$ pipenv update
$ python3 main.py
Installation via Poetry:
$ git clone https://github.com/toddbirchard/mixpanel-delete-profiles.git
$ cd mixpanel-delete-profiles
$ poetry shell
$ poetry update
$ poetry run
Replace the values in .env.example with your values and rename this file to .env:
MIXPANEL_API_TOKEN
: Your Mixpanel API token.
Remember never to commit secrets saved in .env files to Github.