• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

delete a large number of accounts at a time commandline

M

manish.rawal78

Guest
Hi,

Please advise a script that would forcefully delete a domain from commandline by using following locations as reference in plesk windows. I want to be able to delete a large number of accounts at a time, probably using some for loop.





#####################################################
If you are still unable to remove the domain from the Control panel it means that the domain account is corrupted, you will need to remove it manually. Before you start this process it is important to backup Plesk and also the psa database.

1. Remove the domain from inetpub > vhosts
2. Remove from Mail Enable Administrator
3. Remove from C:\Program Files\SWsoft\Plesk\Mail Servers\Mail Enable\Post Offices
4. Remove from C:\Program Files\SWsoft\Plesk\Mail Servers\Mail Enable\Config\Post Offices
5. Remove from Internet Information Services manager
6. Remove from Computer management Console - System Tools > Local Users and Groups > Users. You must remove referances to the domain for Plesk Domain User and Plesk IIS User
7. Remove DNS entry from C:\Program Files\SWsoft\plesk\dns\etc\named.conf
8. Remove all referances to the domain in the psa database for the following tables

* domains
* domain_aliases
* data_bases
* db_users
* sys_users
* hosting
* dns_recs

You can access the psa database by opening a command prompt and changing to the mysql directory, usually \Program Files\SWsoft\Plesk\mysql\bin
The type in the command "mysql -u admin -p password -P8306" where password is the admin password for Plesk.

Once you have completed the above steps, the domain in question should be gone when you list domains in the Plesk Control Panel.
#####################################################


Thanks
 
Back
Top