This script allows you to manage users on a panel, including listing users by admin and optionally deleting users.
- Python 3.7 or higher
- pip (Python package installer)
- Access to a Unix-like terminal (Linux, macOS, or Windows Subsystem for Linux)
-
Install Python:
- For Ubuntu/Debian:
sudo apt-get update && sudo apt-get install python3 python3-pip
- For macOS with Homebrew:
brew install python
- For other systems, download from python.org
- For Ubuntu/Debian:
-
Clone the repository:
git clone https://github.com/erfjab/AdminUsersDeleter.git cd AdminUsersDeleter
-
Install required libraries:
pip3 install httpx
-
Open the script in a text editor:
nano main.py
-
Modify the following variables at the top of the script:
PANEL_USERNAME
: Your panel sudo usernamePANEL_PASSWORD
: Your panel sudo passwordADMIN_USERNAME
: The admin username to filter by (or leave empty to list all admins. like: '')PANEL_HOST
: The URL of your panel without dashboard. like: 'https://sub.domain.com:port'DELETE_USERS
: Set toTrue
if you want to enable user deletion (use with caution!)
-
Save the file:
- In nano: Press
Ctrl + X
, thenY
, thenEnter
- In nano: Press
-
Make the script executable:
chmod +x main.py
-
Run the script:
python3 main.py
- If
DELETE_USERS
is set toTrue
, the script will attempt to delete all users it retrieves. Use this feature with extreme caution. - Always make sure you have proper backups before performing any deletion operations.