{"version":"1.0","type":"rich","title":"Gist 8401198","description":"This example shows a Django management command that clears cached thumbnail data and removes the corresponding thumbnail files from storage. The code uses the sorl-thumbnail library’s default key-value store and storage backend to wipe the cache and delete the `_thumbs_` folder contents. It accepts a `delete` argument to trigger the cleanup, first calling `default.kvstore.clear()` to empty the cached entries, then iterating over items in the thumbnail storage directory and removing each with `rmtree`. The command prints status messages after each step.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-8401198?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}