Skip to content

Latest commit

 

History

History
57 lines (41 loc) · 2.37 KB

README.md

File metadata and controls

57 lines (41 loc) · 2.37 KB

Mixpanel Delete User Profiles

Python Mixpanel GitHub Last Commit GitHub Issues GitHub Stars GitHub Forks

Avoid Mixpanel overage charges by identifying and deleting incomplete user profiles.

Getting Started

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.

Installation

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

Configuration

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.