# How do I delete the file of user avatar?

**URL:** <https://meta.discourse.org/t/how-do-i-delete-the-file-of-user-avatar/185321>\
**Category:** Product Support\
**Created:** [April 3, 2021, 4:00am UTC](https://meta.discourse.org/t/how-do-i-delete-the-file-of-user-avatar/185321 "2021-04-03T04:00:26Z")\
**Posts on this page:** 1\
**Showing post:** 24

<div class="post-metadata">

**Author:** ![snakeninny](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/snakeninny/32/115522_2.png) [@snakeninny](https://meta.discourse.org/u/snakeninny)\
**Post date:** [June 8, 2021, 5:03am UTC](https://meta.discourse.org/t/how-do-i-delete-the-file-of-user-avatar/185321/24 "2021-06-08T05:03:39Z")

</div>

Problem solved:

Someone from my [forum](https://iosre.com/t/topic/19791/14) 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:

```plaintext
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:

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

```

The image was gone.

---

_[View the full topic](https://meta.discourse.org/t/how-do-i-delete-the-file-of-user-avatar/185321)._
