# How can I delete an image based on only a url?

**URL:** https://meta.discourse.org/t/how-can-i-delete-an-image-based-on-only-a-url/380017
**Category:** Support
**Created:** [August 23, 2025, 1:33pm 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:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![physixfan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/physixfan/32/184201_2.png) [@physixfan](https://meta.discourse.org/u/physixfan)
#### Post date: [August 23, 2025, 1:33pm UTC](https://meta.discourse.org/t/how-can-i-delete-an-image-based-on-only-a-url/380017/1 "2025-08-23T13:33:34Z")

</div>

Our forum just got an annoying DCMA copyright infringement notice. It seems it’s because of an image that one of our users uploaded. The thing is, what we get is just a url of that image: [https://asset-cdn.uscardforum.com/original/4X/7/f/d/7fdfdcb51a4a8dada5e0bc28ca1616fafe2ecec1.jpeg](https://asset-cdn.uscardforum.com/original/4X/7/f/d/7fdfdcb51a4a8dada5e0bc28ca1616fafe2ecec1.jpeg) . How can I find where is this image on our forum and delete it?

---

<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: [August 23, 2025, 3:05pm 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>

Hi!

Does that help?

> [@DMCA - Remove Individual Image Best Practices](https://meta.discourse.org/t/dmca-remove-individual-image-best-practices/156817/4):
>
> 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. …

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [August 23, 2025, 3:33pm UTC](https://meta.discourse.org/t/how-can-i-delete-an-image-based-on-only-a-url/380017/3 "2025-08-23T15:33:47Z")

</div>

Or use our Legal Compliance plugin

> [@Legal Compliance Plugin](https://meta.discourse.org/t/legal-compliance-plugin/356331/1):
>
> The first functionality is the ability to remove uploads quickly.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [September 22, 2025, 3:34pm UTC](https://meta.discourse.org/t/how-can-i-delete-an-image-based-on-only-a-url/380017/4 "2025-09-22T15:34:30Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
