{"id":2232,"date":"2019-01-02T09:55:47","date_gmt":"2019-01-02T09:55:47","guid":{"rendered":"http:\/\/www.softaculous.com\/blog\/docs\/cli\/disable-outdated-scripts-cli\/"},"modified":"2025-01-31T12:10:19","modified_gmt":"2025-01-31T12:10:19","slug":"disable-outdated-scripts-cli","status":"publish","type":"docs","link":"https:\/\/www.softaculous.com\/blog\/docs\/cli\/disable-outdated-scripts-cli\/","title":{"rendered":"Disable Outdated Scripts CLI"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">Overview<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Softaculous allows you to disable all Scripts that have not been updated for 2 years from command line.&nbsp;<br><\/p>\n\n\n\n<p class=\"alert alert-info wp-block-paragraph\"><strong>Note\u00a0<\/strong>: This has been added in Softaculous 5.0.9<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Disable all Outdated Scripts<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>Use the following command to&nbsp;<strong>Disable all outdated scripts (not updated by script vendor since 2 years)<\/strong>&nbsp;at once&nbsp;:<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted bash hljs\">php \/path\/to\/softaculous\/cli.php --disable_outdated_script\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 --disable_outdated_script <br><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>That&#8217;s it. All Scripts that have not been updated for 2 years will now be disabled.<\/li><\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">Parameters<\/h4>\n\n\n\n<ul class=\"wp-block-list\"><li>In the above command the first parameter should be&nbsp;<strong>&#8211;disable_outdated_script<\/strong>&nbsp;as this parameter will initiate the disable outdated scripts function.<\/li><\/ul>\n","protected":false},"featured_media":0,"parent":1686,"menu_order":13,"comment_status":"closed","ping_status":"closed","template":"","docs_category":[],"class_list":["post-2232","docs","type-docs","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs\/2232","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=2232"}],"version-history":[{"count":3,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs\/2232\/revisions"}],"predecessor-version":[{"id":2796,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs\/2232\/revisions\/2796"}],"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=2232"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs_category?post=2232"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}