• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

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