{"id":2162,"date":"2019-01-02T07:52:47","date_gmt":"2019-01-02T07:52:47","guid":{"rendered":"http:\/\/www.softaculous.com\/blog\/docs\/cli\/remove-installation-from-cli\/"},"modified":"2025-01-31T12:10:19","modified_gmt":"2025-01-31T12:10:19","slug":"remove-installation-from-cli","status":"publish","type":"docs","link":"https:\/\/www.softaculous.com\/blog\/docs\/cli\/remove-installation-from-cli\/","title":{"rendered":"Remove Installation from CLI"},"content":{"rendered":"\n<p class=\"alert alert-info wp-block-paragraph\"><strong>Note\u00a0<\/strong>: At the moment this is possible for cPanel and Webuzo only.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Remove an Installation from Command Line (Only For cPanel and Webuzo)<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Softaculous allows you to remove an existing installation from command line. Here is the guide:<\/strong>&nbsp;<br><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Use the following command to remove the installation&nbsp;:<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted bash hljs\">php \/path\/to\/softaculous\/cli.php --remove --insid=INSID --cpuser=USER --cppass=PASS\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">E.g. for cPanel&nbsp;:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted bash hljs\">\/usr\/local\/cpanel\/3rdparty\/bin\/php \/usr\/local\/cpanel\/whostmgr\/docroot\/cgi\/softaculous\/cli.php --remove --insid=INSID --cpuser=USER --cppass=PASS\n<\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Thats it. Your installation has been removed.<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Variables<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>In the above command the first parameter should be&nbsp;<strong>&#8211;remove<\/strong>&nbsp;as this parameter will initiate the remove function.<\/li><li><strong>&#8211;cpuser=USER<\/strong>. Here&nbsp;<strong>cpuser<\/strong>&nbsp;is the field name and&nbsp;<strong>USER<\/strong>&nbsp;is the value for that field.<\/li><li><strong>insid=INSID<\/strong>&nbsp;&#8211; This is the installation id of the installation you want to remove. E.g. 26_57566 Guide to get&nbsp;<a href=\"https:\/\/softaculous.com\/docs\/Remove_Installation_from_CLI#List_Installations_to_get_INSID\">installations list<\/a><\/li><li><strong>cpuser=USER<\/strong>&nbsp;&#8211; This is the cPanel username<\/li><li><strong>cppass=PASS<\/strong>&nbsp;&#8211; This is the cPanel password<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Optional Variables<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>no_delete_db=1<\/strong>&nbsp;&#8211; Use this parameter if you do&nbsp;<strong>NOT<\/strong>&nbsp;want Softaculous to delete the database.<\/li><li><strong>no_delete_dir=1<\/strong>&nbsp;&#8211; Use this parameter if you do&nbsp;<strong>NOT<\/strong>&nbsp;want Softaculous to delete the files &amp; directory.<\/li><li><strong>no_delete_datadir=1<\/strong>&nbsp;&#8211; Use this parameter if you do&nbsp;<strong>NOT<\/strong>&nbsp;want Softaculous to delete the data directory.<\/li><li><strong>no_delete_wwwdir=1<\/strong>&nbsp;&#8211; Use this parameter if you do&nbsp;<strong>NOT<\/strong>&nbsp;want Softaculous to delete the www directory. (For PERL scripts)<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">List Installations to get INSID<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>Use the following command to get the list of installations&nbsp;:<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted bash hljs\">php \/path\/to\/softaculous\/cli.php --list --cpuser=USER --cppass=PASS\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">E.g. for cPanel&nbsp;:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted bash hljs\">\/usr\/local\/cpanel\/3rdparty\/bin\/php \/usr\/local\/cpanel\/whostmgr\/docroot\/cgi\/softaculous\/cli.php --list --cpuser=USER --cppass=PASS\n<\/pre>\n\n\n\n<p class=\"alert alert-info wp-block-paragraph\"><strong>NOTE: <\/strong>Please enclose your cpuser, cppass in single quotes(&#8216;) while passing in the CLI command above.<\/p>\n","protected":false},"featured_media":0,"parent":1686,"menu_order":4,"comment_status":"closed","ping_status":"closed","template":"","docs_category":[],"class_list":["post-2162","docs","type-docs","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs\/2162","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/comments?post=2162"}],"version-history":[{"count":4,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs\/2162\/revisions"}],"predecessor-version":[{"id":2782,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs\/2162\/revisions\/2782"}],"up":[{"embeddable":true,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs\/1686"}],"wp:attachment":[{"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/media?parent=2162"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs_category?post=2162"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}