How to delete the files in ipfs?

How to delete the files in ipfs?
If all the files in ipfs can’t be delete, some indelicate files will exist in ipfs forever?
If anybody can explain it for me,thanks

I think the threads linked below answer these questions:

I have landed on a phishing page QmcD5fDAHaNdAjrspmnnqsnEy2BgyRBszwDYVFg71Sx6f6. How to remove it from my IPFS node so i do not distribute it even for short time?

ipfs repo gc will remove all objects that aren’t pinned (IE: You visited bad content, and want to purge it all).

1 Like