Admin-Ahead Community

Windows => Control Panels => Plesk => Topic started by: ashleyj on January 11, 2014, 09:33:31 pm

Title: Delete a domain using CLI (for Windows)
Post by: ashleyj 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 !!!!!!