Disable IPFS Cluster GC

From the documentation

IPFS garbage collection should be disabled while adding. Because blocks are block/put individually, if a GC operation happens while and adding operation is underway, and before the blocks have been pinned, they would be deleted.

How is that done? Is that through a query param in the POST /ipfs/gc?

Also, how to then re-enable after disabling?

That is done in the IPFS configuration. There is no way to disable GC programatically (via ipfs-api etc.).

1 Like