<p dir="auto">I've seen several questions regarding deleting images but none of them are good for me.</p>
<p dir="auto">Let's have a use case like this:</p>
<ul dir="auto">
<li>user adds an entity to a list ("favorites")</li>
<li>we load all the images for the entity and store them via Glide cache</li>
<li>now user can have the images even in offline mode</li>
<li>user removes entity from the list</li>
</ul>
<p dir="auto">Now what? I dont want to clear the cache completely (I want to keep all the images of the other favorites) but I don't want to keep images in cache I dont need (seems to pile up).</p>
<p dir="auto">Havent checked the internal implementation but what stops from Glide to find and delete an image of a particular URL if you're hashing it anyway? In our case the URL's rarely if ever change too. I'm very happy with Glide but this seems to be an issue which doesnt sound hard to fix.</p>
<p dir="auto">Any future plans to do something like this?</p>
<p dir="auto">Thanks</p>
<p dir="auto">Hi,<br>
How can I clear Glide's cache in case.</p>
<ul dir="auto">
<li>Clear all cache</li>
<li>Clear cache of an URL.</li>
</ul>