1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

delete a large number of accounts at a time commandline

Discussion in 'Plesk for Windows - 8.x and Older' started by manish.rawal78, May 19, 2008.

  1. manish.rawal78

    manish.rawal78 Guest

    0
     
    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
     
Loading...