lv_cache_drop() function
Drop a cache entry with the given key. If the entry is not in the cache, nothing will happen to it. If the entry is found, it will be removed from the cache and its data will be freed when the last reference to it is released.
Arguments
cache
The cache object pointer to drop the entry.
key
The key of the entry to drop.
user_data
A user data pointer that will be passed to the free callback.
Notes
The data will not be freed immediately but when the last reference to it is released. But this entry will not be found by lv_cache_acquire(). If you want cache a same key again, you should use lv_cache_add() or lv_cache_acquire_or_create().