# How can i delete or edit file?

**URL:** <https://discuss.ipfs.tech/t/how-can-i-delete-or-edit-file/5107>\
**Category:** Help\
**Created:** [March 28, 2019, 7:09pm UTC](https://discuss.ipfs.tech/t/how-can-i-delete-or-edit-file/5107 "2019-03-28T19:09:03Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![alghasemy](https://avatars.discourse-cdn.com/v4/letter/a/b38774/32.png) [@alghasemy](https://discuss.ipfs.tech/u/alghasemy)\
**Post date:** [March 28, 2019, 7:09pm UTC](https://discuss.ipfs.tech/t/how-can-i-delete-or-edit-file/5107/1 "2019-03-28T19:09:04Z")

</div>

I appreciate it if someone tells me how I can edit or remove the file in ipfs

---

<div class="post-metadata">

**Author:** ![postables](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/postables/32/2729_2.png) [@postables](https://discuss.ipfs.tech/u/postables)\
**Post date:** [March 28, 2019, 7:20pm UTC](https://discuss.ipfs.tech/t/how-can-i-delete-or-edit-file/5107/2 "2019-03-28T19:20:47Z")

</div>

You can’t edit a file once it’s on IPFS. You can edit the original file that isn’t on IPFS, and then add that to IPFS but you’ll get a new content hash. The only way you can delete a file is to unpin the content, and then start a garbage collection run. Keep in mind this _only_ removes it from your node. If another node is pinning the same content, it will still be available to users on IPFS.

---

<div class="post-metadata">

**Author:** ![alghasemy](https://avatars.discourse-cdn.com/v4/letter/a/b38774/32.png) [@alghasemy](https://discuss.ipfs.tech/u/alghasemy)\
**Post date:** [March 28, 2019, 7:33pm UTC](https://discuss.ipfs.tech/t/how-can-i-delete-or-edit-file/5107/3 "2019-03-28T19:33:30Z")

</div>

the original file is Wikipedia. and it is revised. but how can I edit or remove it on ipfs.

---

<div class="post-metadata">

**Author:** ![postables](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/postables/32/2729_2.png) [@postables](https://discuss.ipfs.tech/u/postables)\
**Post date:** [March 28, 2019, 8:43pm UTC](https://discuss.ipfs.tech/t/how-can-i-delete-or-edit-file/5107/4 "2019-03-28T20:43:48Z")

</div>

IPFS doesn’t support editing of content. You’ll need to edit the original file that you added, and then re-add it. After which you can remove the file from your node by unpinning it, and running garbage collection. You can’t remove something from nodes that you don’t own/manage.

---

<div class="post-metadata">

**Author:** ![alghasemy](https://avatars.discourse-cdn.com/v4/letter/a/b38774/32.png) [@alghasemy](https://discuss.ipfs.tech/u/alghasemy)\
**Post date:** [March 28, 2019, 8:58pm UTC](https://discuss.ipfs.tech/t/how-can-i-delete-or-edit-file/5107/5 "2019-03-28T20:58:02Z")

</div>

the original file is from wikipedia and Html file on IPFS is different . can you help me.

---

<div class="post-metadata">

**Author:** ![stebalien](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/stebalien/32/156_2.png) [@stebalien](https://discuss.ipfs.tech/u/stebalien)\
**Post date:** [April 1, 2019, 10:00am UTC](https://discuss.ipfs.tech/t/how-can-i-delete-or-edit-file/5107/6 "2019-04-01T10:00:12Z")

</div>

The file on IPFS is an immutable snapshot of the page on Wikipedia. You _can’t_ change it.

---

<div class="post-metadata">

**Author:** ![alghasemy](https://avatars.discourse-cdn.com/v4/letter/a/b38774/32.png) [@alghasemy](https://discuss.ipfs.tech/u/alghasemy)\
**Post date:** [April 1, 2019, 1:01pm UTC](https://discuss.ipfs.tech/t/how-can-i-delete-or-edit-file/5107/7 "2019-04-01T13:01:51Z")

</div>

there is a one snapshot of the wikipedia that belongs to 5 years ago and now that page has been changed a lot. how can we request from ipfs website to update that snapshot.

---

<div class="post-metadata">

**Author:** ![stebalien](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/stebalien/32/156_2.png) [@stebalien](https://discuss.ipfs.tech/u/stebalien)\
**Post date:** [April 1, 2019, 1:37pm UTC](https://discuss.ipfs.tech/t/how-can-i-delete-or-edit-file/5107/8 "2019-04-01T13:37:28Z")

</div>

You _can’t_. If you see a snapshot that begins with `https://ipfs.io/ipns/`, that’s a mutable version that can be updated. If you see one beginning with `https://ipfs.io/ipfs/`, that’s an immutable **snapshot** that can’t be changed.

However, if you believe a page needs to be removed for legal reasons (e.g., it violates your copyright) you can send a request as per [https://ipfs.io/legal/](https://ipfs.io/legal/). That won’t remove the page from the network (other IPFS nodes may have the file and we can’t delete the file from those computers) but it _will_ cause our gateways to refuse to _load_ the content.

---

<div class="post-metadata">

**Author:** ![swaroopchirayinkil](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/swaroopchirayinkil/32/4929_2.png) [@swaroopchirayinkil](https://discuss.ipfs.tech/u/swaroopchirayinkil)\
**Post date:** [April 19, 2021, 3:16am UTC](https://discuss.ipfs.tech/t/how-can-i-delete-or-edit-file/5107/9 "2021-04-19T03:16:21Z")

</div>

So before sending files to IPFS we need to make sure everything is perfect. once it is uploaded then there is no revamps possible immediately…!

So how can IPFS handle **Copyright infringement** related issues that may come along in the future…!
