No description
- Python 100%
| .gitignore | ||
| delete.py | ||
| find.py | ||
| LICENSE | ||
| README.md | ||
| requirements.txt | ||
GitLab User Cleanup
Two Python scripts for cleaning up spam users and bots from GitLab instances.
Scripts
find.py - Finds problematic users and exports them to JSON files delete.py - Deletes users from the JSON files created by find.py
Setup
-
Install requirements:
pip install -r requirements.txt -
Create
.envfile:GITLAB_URL=https://your-gitlab-instance.com ACCESS_TOKEN=your_admin_token_here
Usage
- Run
python find.pyto identify spam users - Review the generated JSON files
- Run
python delete.pyto remove users
The find script detects users based on unverified emails, no repositories, suspicious domains, and spam patterns. The delete script permanently removes users with confirmation prompts.
Warning
User deletion is permanent and cannot be undone.