Remove Installation from CLI

From Webuzo Wiki
Jump to: navigation, search

Remove an Installation from Command Line


Webuzo allows you to remove an installation from command line. Here is the guide:

  • Use the following command to remove the installation:
 Root> /usr/local/emps/bin/php /usr/local/webuzo/cli.php --remove --insid=InstallationID --cpuser=USER --cppass=PASS  --cpdomain=DOMAINNAME


Variables

  • In the above command the first parameter should be --remove as this parameter will initiate the remove function.
  • E.g: --cpuser=USER. Here cpuser is the field name and USER is the value for that field.
  • cpuser=USER - This is the Webuzo username
  • cppass=PASS - This is the Webuzo password
  • cpdomain=DOMAINNAME - This is the domain of the server. By default it will consider the same server.
  • insid=InstallationID - This is the installation id you want to delete. you can find the script installation id using following command


  • Use the following command to get the list of installation id of the script :
 Root> /usr/local/emps/bin/php /usr/local/webuzo/cli.php --list --cpuser=USER --cppass=PASS --cpdomain=DOMAINNAME


  • no_delete_db=1 - OPTIONAL : If you do not want to delete the Database. By default it will delete Database.
  • no_delete_datadir=1 - OPTIONAL : If you do not want to delete the Data Directory. By default it will delete Data Directory.
  • no_delete_wwwdir=1 - OPTIONAL :If you do not want to delete the www Directory. By default it will delete www Directory.
  • no_delete_dir=1 - OPTIONAL : :If you do not want to delete the Installation Directory. By default it will delete Installation Directory.