How can i delete a file from ipfs?

I add a file to ipfs by command, and how can i delete it? thx!:grin:

You can remove the pin and then run the garbage collector.
Ideally that would remove it, but just from your node.

ipfs pin rm $YOUR_HASH

Then

ipfs repo gc
3 Likes

If you are looking for a broader discussion, you may find these threads interesting:

2 Likes