I thought if I control all peers and just unpin some file by it’s CID from all peers than file will be deleted from the network. But I was wrong…
Using Cluster API :
- added file (ipfs-cluster-ctl add file.txt)
- check it status and it was pinned among all nodes (ipfs-cluster-ctl status CID)
- unpinned recently added file (ipfs-cluster-ctl pin rm CID)
- checked that it was unpinned (ipfs-cluster-ctl pin ls)
But I’m still able to get the file with ipfs cat/get CID…
Even if I run garbage collector on all nodes ipfs repo gc I’m still able to access this file.
Is it possible to completely delete file from my Private Network/Cluster?
That is weird. GCing should have removed it completely. Does ipfs-cluster-ctl status CID show it as unpinned? Does ipfs pin ls <cid> comes back empty in all ipfs peers?
You need to make sure that the file is not indirectly pinned by any other pin as well.
The problem is that garbage collection does not seem to be working on one of your peers, so the file is not garbage collected. You should investigate the gc error.