Remove Installation from CLI

From Softaculous Wiki
Jump to: navigation, search

Note : At the moment this is possible for cPanel and Webuzo only.

Remove an Installation from Command Line (Only For cPanel and Webuzo)


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

  • Use the following command to remove the installation :
Root> php /path/to/softaculous/cli.php --remove --insid=INSID --cpuser=USER --cppass=PASS

E.g. for cPanel :

Root> /usr/local/cpanel/3rdparty/bin/php /usr/local/cpanel/whostmgr/docroot/cgi/softaculous/cli.php --remove --insid=INSID --cpuser=USER --cppass=PASS
  • Thats it. Your installation has been removed.

Variables

  • In the above command the first parameter should be --remove as this parameter will initiate the remove function.
  • --cpuser=USER. Here cpuser is the field name and USER is the value for that field.
  • insid=INSID - This is the installation id of the installation you want to remove. E.g. 26_57566 Guide to get installations list
  • cpuser=USER - This is the cPanel username
  • cppass=PASS - This is the cPanel password

Optional Variables

  • no_delete_db=1 - Use this parameter if you do NOT want Softaculous to delete the database.
  • no_delete_dir=1 - Use this parameter if you do NOT want Softaculous to delete the files & directory.
  • no_delete_datadir=1 - Use this parameter if you do NOT want Softaculous to delete the data directory.
  • no_delete_wwwdir=1 - Use this parameter if you do NOT want Softaculous to delete the www directory. (For PERL scripts)

List Installations to get INSID

  • Use the following command to get the list of installations :
Root> php /path/to/softaculous/cli.php --list --cpuser=USER --cppass=PASS

E.g. for cPanel :

Root> /usr/local/cpanel/3rdparty/bin/php /usr/local/cpanel/whostmgr/docroot/cgi/softaculous/cli.php --list --cpuser=USER --cppass=PASS

NOTE: Please enclose your cpuser, cppass in single quotes(') while passing in the CLI command above.