How do I delete the file of user avatar?

Problem solved:

Someone from my forum told me that this avatar image might be stored in nginx cache under proxy_cache_path, which was usually /var/nginx/cache, but I couldn’t find either proxy_cache_path or /var/nginx/cache.

I was inspired by him that I entered the discourse app via launcher enter app and then found nginx cache:

root@iosre:/var/discourse/shared# /var/discourse/launcher enter app
WARNING: Docker version 17.05.0-ce deprecated, recommend upgrade to 17.06.2 or newer.
root@iosre-app:/var/www/discourse# cd /var/nginx/cache
root@iosre-app:/var/nginx/cache# ls
0  1  2  3  4  5  6  7	8  9  a  b  c  d  e  f
root@iosre-app:/var/nginx/cache# 

And deleted all the caches:

root@iosre-app:/var/nginx/cache# ls
root@iosre-app:/var/nginx/cache# 

The image was gone.