to another locale.</p><h2 id="clearing-preferences" tabindex="-1">Clearing preferences <a class="header-anchor" href="#clearing-preferences" aria-hidden="true">#</a></h2><p>You can delete one preference by calling <code>$this-&gt;preferences-&gt;remove(&#39;my_key&#39;);</code> or clear all preferences by calling <code>$this-&gt;preferences-&gt;removeAll();</code></p></div></div><footer class="page-footer" data-v-7eddb2c4 data-v-07c132fc><div class="edit" data-v-07c132fc><div class="edit-link" data-v-07c132