Deleting Files
The process of removing files from IPFS is called unpinning. When you unpin something from an IPFS storage node, it is marked for garbage collection. When garbage collection runs, the content is permanently deleted from the storage node.
Keep in mind that if someone else has pinned your content on IPFS, it will remain available even if you delete your files!
Deleting Programatically
The SDK has a very simple unpin method that will allow you to delete an array of cids
.
Deleting All Files
If you find yourself in a place where you need to unpin a lot of files or perhaps all your files, you can use a script like this to create an array of CIDs and unpin them one by one. The example below uses the pinList
queries to target all pinned files and return 1000 for each request. This could easily be done with a different query to target different files, please check out the listing files doc for more info.
Deleting by Web App
If you are trying to delete files (or in IPFS terms “Unpin”), you can do so by clicking on the “more” button and selecting “Unpin File”
Additionally, with our Bulk File Actions tool, you can select and manage multiple files at once - up to 100!