Introduction
How To Remove A WordPress Website Managed Via The WP Toolkit From The Command Line?
Procedure
You can use one of the following commands to remove a wordPress instance:
/usr/local/bin/wp-toolkit --remove -instance-id INSTANCE_ID
/usr/local/bin/wp-toolkit --remove -domain-name DOMAIN_NAME -path PATH
There are two ways of specifying which WordPress installation we wish to remove; either by adding the "INSTANCE_ID" or by including the "DOMAIN_NAME" and the "PATH" to the installation.
In order to find "INSTANCE_ID", "DOMAIN_NAME", "PATH" and etc for each WordPress hosted on the server you can run the following command:
/usr/local/bin/wp-toolkit --list
When the final command is constructed you also have the option to add some extra optional arguments to your command to modify the behavior of WP Toolkit further: (The "[]" must be removed)
[-leave-db] [-leave-db-user] [-leave-action-logs] [-format raw|json]