Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Delete a domain using CLI (for Windows)  (Read 2578 times)

0 Members and 1 Guest are viewing this topic.

ashleyj

  • Guest
Delete a domain using CLI (for Windows)
« on: January 11, 2014, 09:33:31 pm »
Hi,

Below are commands that can be used to delete a domain from Plesk (Windows) using CLI.

1. Using the command mentioned below find the domain ID of the domain you want to delete
%plesk_bin%\dbclient.exe" --direct-sql --sql="select * from domains"

2. Now use the command below to delete the domain
"%plesk_bin%\dbclient.exe" --direct-sql --sql="DELETE FROM domains where id=xxx"

Cheers !!!!!!