<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[How to clear, reset or Delete Squid Config?]]></title><description><![CDATA[<p dir="auto">anyone can help me to delete the Squid 3 configuration….<br />
my squid 3 proxy/cache was not working so i remove the package from System-&gt;Package Manager i need to install squid 2 but the old settings from Squid 3 still there and do not let me config Squid 2 as it should...<br />
any idea how to Delete, Clear o Reset that settings?</p>
]]></description><link>https://forum.netgate.com/topic/70599/how-to-clear-reset-or-delete-squid-config</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Apr 2026 06:37:40 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/70599.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 24 Jun 2014 16:33:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to clear, reset or Delete Squid Config? on Wed, 20 Aug 2014 22:41:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jimp">@<bdi>jimp</bdi></a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kom">@<bdi>KOM</bdi></a>:</p>
<blockquote>
<p dir="auto">SSH in and delete /var/squid, /usr/local/pkg/squid.* and /usr/local/pkg/squid_<em>.</em></p>
<p dir="auto">Don't delete /usr/local/pkg/squid* or you will lose your Squidguard settings, if it's installed.</p>
</blockquote>
<p dir="auto">The settings are in config.xml, not there, so you can remove "/usr/local/pkg/squid*". If you want to reinstall the packages after, make sure to reinstall squid first before trying to reinstall squidGuard.</p>
<p dir="auto">As for the settings, if you want to remove those, try this from Diagnostics &gt; Command in the PHP Execute box:</p>
<pre><code>$squid_sections = array("squid", "squidnac", "squidcache", "squidauth", "squidextauth", "squidtraffic", "squidupstream", "squidusers");
foreach ($squid_sections as $sec) {
	if (is_array($config['installedpackages'][$sec]))
		unset($config['installedpackages'][$sec]);
}
write_config("Removed Squid");

</code></pre>
<p dir="auto">Or to remove squid, squidguard, lightsquid, and anything else with 'squid' in its package name:</p>
<pre><code>foreach (array_keys($config['installedpackages']) as $sec) {
	if (strpos($sec, "squid") !== false)
		unset($config['installedpackages'][$sec]);
}
write_config("Removed all squid-related settings");

</code></pre>
<p dir="auto">Not perfect but it should get the job done.</p>
<p dir="auto">Either that, or backup the config, edit the settings out, then restore.</p>
</blockquote>
<p dir="auto">it works! thanks a lot!</p>
]]></description><link>https://forum.netgate.com/post/478670</link><guid isPermaLink="true">https://forum.netgate.com/post/478670</guid><dc:creator><![CDATA[ubit]]></dc:creator><pubDate>Wed, 20 Aug 2014 22:41:59 GMT</pubDate></item><item><title><![CDATA[Reply to How to clear, reset or Delete Squid Config? on Wed, 20 Aug 2014 22:41:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kom">@<bdi>KOM</bdi></a>:</p>
<blockquote>
<p dir="auto">SSH in and delete /var/squid, /usr/local/pkg/squid.* and /usr/local/pkg/squid_<em>.</em></p>
<p dir="auto">Don't delete /usr/local/pkg/squid* or you will lose your Squidguard settings, if it's installed.</p>
</blockquote>
<p dir="auto">Thank you!!</p>
]]></description><link>https://forum.netgate.com/post/478669</link><guid isPermaLink="true">https://forum.netgate.com/post/478669</guid><dc:creator><![CDATA[ubit]]></dc:creator><pubDate>Wed, 20 Aug 2014 22:41:20 GMT</pubDate></item><item><title><![CDATA[Reply to How to clear, reset or Delete Squid Config? on Fri, 27 Jun 2014 16:53:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kom">@<bdi>KOM</bdi></a>:</p>
<blockquote>
<p dir="auto">SSH in and delete /var/squid, /usr/local/pkg/squid.* and /usr/local/pkg/squid_<em>.</em></p>
<p dir="auto">Don't delete /usr/local/pkg/squid* or you will lose your Squidguard settings, if it's installed.</p>
</blockquote>
<p dir="auto">The settings are in config.xml, not there, so you can remove "/usr/local/pkg/squid*". If you want to reinstall the packages after, make sure to reinstall squid first before trying to reinstall squidGuard.</p>
<p dir="auto">As for the settings, if you want to remove those, try this from Diagnostics &gt; Command in the PHP Execute box:</p>
<pre><code>$squid_sections = array("squid", "squidnac", "squidcache", "squidauth", "squidextauth", "squidtraffic", "squidupstream", "squidusers");
foreach ($squid_sections as $sec) {
	if (is_array($config['installedpackages'][$sec]))
		unset($config['installedpackages'][$sec]);
}
write_config("Removed Squid");

</code></pre>
<p dir="auto">Or to remove squid, squidguard, lightsquid, and anything else with 'squid' in its package name:</p>
<pre><code>foreach (array_keys($config['installedpackages']) as $sec) {
	if (strpos($sec, "squid") !== false)
		unset($config['installedpackages'][$sec]);
}
write_config("Removed all squid-related settings");

</code></pre>
<p dir="auto">Not perfect but it should get the job done.</p>
<p dir="auto">Either that, or backup the config, edit the settings out, then restore.</p>
]]></description><link>https://forum.netgate.com/post/469672</link><guid isPermaLink="true">https://forum.netgate.com/post/469672</guid><dc:creator><![CDATA[jimp]]></dc:creator><pubDate>Fri, 27 Jun 2014 16:53:48 GMT</pubDate></item><item><title><![CDATA[Reply to How to clear, reset or Delete Squid Config? on Tue, 24 Jun 2014 17:24:15 GMT]]></title><description><![CDATA[<p dir="auto">SSH in and delete /var/squid, /usr/local/pkg/squid.* and /usr/local/pkg/squid_<em>.</em></p>
<p dir="auto">Don't delete /usr/local/pkg/squid* or you will lose your Squidguard settings, if it's installed.</p>
]]></description><link>https://forum.netgate.com/post/469040</link><guid isPermaLink="true">https://forum.netgate.com/post/469040</guid><dc:creator><![CDATA[KOM]]></dc:creator><pubDate>Tue, 24 Jun 2014 17:24:15 GMT</pubDate></item></channel></rss>