# URL만으로 이미지를 삭제하는 방법은?

**URL:** https://meta.discourse.org/t/how-can-i-delete-an-image-based-on-only-a-url/380017
**Category:** Support
**Created:** [8월 23, 2025, 1:33오후 UTC](https://meta.discourse.org/t/how-can-i-delete-an-image-based-on-only-a-url/380017 "2025-08-23T13:33:34Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [8월 23, 2025, 3:05오후 UTC](https://meta.discourse.org/t/how-can-i-delete-an-image-based-on-only-a-url/380017/2 "2025-08-23T15:05:28Z")

</div>

안녕하세요!

도움이 될까요?

> [@DMCA - Remove Individual Image Best Practices](https://meta.discourse.org/t/dmca-remove-individual-image-best-practices/156817/4?u=canapin):
>
> Just open a rails console and enter the following, replacing the large string with the large string in the image URL. If this is an optimized image then remove everything starting from the first underscore (\_). Upload.find\_by\_sha1('c35ab963fb22f8612697923ebc98d341693cfa1d').posts.each do |p| puts p.url end This will give you the URL(s) to one or more posts that contain the image. This code will give you the paths to the image and all associated optimized images, assuming local storage. …

---

_[View the full topic](https://meta.discourse.org/t/how-can-i-delete-an-image-based-on-only-a-url/380017)._
