Delete hunderds of Sub Domains with one click from cPanel with simple php script updated 2018 with cPanel API 2
- php file configurations
- txt file subdomains
- cPanel Username
- cPanel Password
- cPanel Skin
- Root Domain Name
- Upload file.txt to public_html or any directory (line 26) Domains sample sub-domain subdomain2 subdomain5 Each line must contain on 1 sub domain in file.txt
- Structure of $request
- Don't forget to sign in into your cpanel and check if you have the same prefix (cpsess16xxxxxx55) (line 47)
- === Request structure https://[host here]:[port here]/cpsess/frontend/cpanel_skin/subdomain/dodeldomain.html?domain=[sub-domain here].[domain here]
- Sample: /$cpess/frontend/$cpanel_skin/subdomain/dodeldomain.html?domain=$subd.$domain
- Port should be 2083 or 2082 (Normally it will be 2083 by default).
Thanks to https://www.zubrag.com/scripts/cpanel-delete-subdomains.php but it was not working. cPanel Hosting https://hosting.biz IBX Technologies https://ibxtechnologies.com cPanel https://cpanel.net / https://documentation.cpanel.net/display/CKB/cPanel+Knowledge+Base