# Deleting user images when using the rails console to delete users

**URL:** <https://meta.discourse.org/t/deleting-user-images-when-using-the-rails-console-to-delete-users/76497>\
**Category:** Development\
**Created:** [2017 年12 月 20 日 17:24 UTC](https://meta.discourse.org/t/deleting-user-images-when-using-the-rails-console-to-delete-users/76497 "2017-12-20T17:24:31Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

作者： ![Frank\_Bailey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/frank_bailey/32/83927_2.png) [@Frank\_Bailey](https://meta.discourse.org/u/Frank_Bailey)\
发布日期： [2017 年12 月 20 日 17:24 UTC](https://meta.discourse.org/t/deleting-user-images-when-using-the-rails-console-to-delete-users/76497/1 "2017-12-20T17:24:32Z")

</div>

I added over 17000 users to my client’s Discourse installation via the API. I have to delete them now because reasons.

I’ve worked out how to delete the users themselves via the Rails app as explained here: [Bulk delete suspended users after import - #3 by vinothkannans](https://meta.discourse.org/t/bulk-delete-suspended-users-after-import/73011/3)

This doesn’t seem to delete the user avatar pictures (unless Discourse is caching them?) so I was wondering if anyone can tell me where I can go in the DigitalOcean droplet to delete the images?

Thanks!

---

_[View the full topic](https://meta.discourse.org/t/deleting-user-images-when-using-the-rails-console-to-delete-users/76497)._
