<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>I did forget to escape the "*" character in the example I gave,
      so this should work:</p>
    <p>opensips-cli -x mi cache_remove_chunk "*" other</p>
    <p>Regards,<br>
    </p>
    <pre class="moz-signature" cols="72">-- 
Vlad Patrascu
OpenSIPS Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
    <div class="moz-cite-prefix">On 20.11.2020 15:25, Mark Allen wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CADaqb1u=AhQUWN8uONwW6BRp9K1mThJR3PrczdK=9wBjrTEQqw@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">thanks Vlad - I've tried it but I get 
        <div><br>
        </div>
        <div>ERROR: command 'cache_remove_chunk' returned: -32602:
          Invalid params<br>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Fri, 20 Nov 2020 at 13:21,
          Vlad Patrascu <<a href="mailto:vladp@opensips.org"
            moz-do-not-send="true">vladp@opensips.org</a>> wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px
          0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <div>
            <p>Hi Mark,</p>
            <p>The command you should run is:</p>
            <p>opensips-cli -x mi cache_remove_chunk * other</p>
            <p>I will also update the docs as the example is outdated so
              thanks for pointing it out!<br>
            </p>
            <p>Regards,</p>
            <pre cols="72">-- 
Vlad Patrascu
OpenSIPS Developer
<a href="http://www.opensips-solutions.com" target="_blank" moz-do-not-send="true">http://www.opensips-solutions.com</a></pre>
            <div>On 20.11.2020 13:47, Mark Allen wrote:<br>
            </div>
            <blockquote type="cite">
              <div dir="ltr">I have local cache collections setup in my
                script:
                <div><br>
                </div>
                <div>loadmodule "cachedb_local.so"<br>
                      modparam("cachedb_local", "cache_collections",
                  "general; other;")<br>
                      modparam("cachedb_local", "cachedb_url",
                  "local:general:///general") <br>
                </div>
                <div>
                  <div>    modparam("cachedb_local", "cachedb_url",
                    "local:other:///other") <br>
                  </div>
                  <div><br>
                  </div>
                  <div>I want to be able to use opensips-cli to clear
                    the contents of the "other" collection from the
                    command line or a script without needing to restart
                    OpenSIPS or losing the contents of the "general"
                    cache collection. I've looked at the cachedb_local
                    documentation for exported MI functions but I don't
                    understand how this translates into a valid
                    opensips-cli command.</div>
                  <div><br>
                  </div>
                  <div>Any help gratefully received!   :D</div>
                </div>
                <div><br>
                </div>
              </div>
              <br>
              <fieldset></fieldset>
              <pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank" moz-do-not-send="true">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank" moz-do-not-send="true">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
            </blockquote>
          </div>
          _______________________________________________<br>
          Users mailing list<br>
          <a href="mailto:Users@lists.opensips.org" target="_blank"
            moz-do-not-send="true">Users@lists.opensips.org</a><br>
          <a
            href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
            rel="noreferrer" target="_blank" moz-do-not-send="true">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
        </blockquote>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
  </body>
</html>