Back

Blog details

Is IPFS Permanent? Persistence, Permanence and Pinning

AIOZ Network
6 min readNovember 20, 2026
aioz-pin
AIOZ Pin cover image with the headline Is IPFS Permanent?

No, IPFS is not permanent by default. A CID is a permanent name for some bytes, but those bytes stay online only while a reachable node keeps a copy, usually because someone pinned it. Someone has to keep paying for that copy.

TL;DR:

  • A file on IPFS stays online only while at least one reachable node keeps its blocks
  • The CID is the permanent part: it always names the same bytes, even when nobody holds them
  • Unpinned copies are caches that garbage collection removes; Kubo collects automatically only with --enable-gc
  • Provider records expire after 48 hours, so a node must stay online and re-announce, every 22 hours by default in Kubo
  • Pinning on more than one node or service gives you persistence; Filecoin deals add a contract with an end date

Is Data on IPFS Stored Forever?

No, and the IPFS docs say so plainly: IPFS guarantees that content is discoverable, but "it doesn't guarantee that any content is persistently available." When you run ipfs add, the file goes into your own node's repo and nowhere else.

A 2022 research overview of IPFS by Doan, Psaras, Ott and Bajpai calls this a strict pull model, where other peers copy content only when they request it. Those copies are caches that each node clears with garbage collection when it needs room. The paper sums up the result as "best-effort storage without any guarantees for availability."

Popularity helps, but it isn't a plan you control. Say you add a 2 MB image on your laptop and share its ipfs:// link. If you close the lid before anyone fetches it, the link still names the image correctly, yet no node can return a single byte. The IPFS docs cite a 2011 study that put the average web page's lifespan at just 100 days.

What Is the Difference Between Persistence and Permanence?

The IPFS docs separate three ideas that people often merge. Permanence is the goal: data that survives without anyone having to act. Persistence is what you can get today, data that stays because a specific node keeps it safe from garbage collection. Pinning is the mechanism that gives you persistence on one node.

TermWhat it meansWho makes it happenHow long it lasts
PermanenceData stays available foreverNo single IPFS mechanismNot guaranteed by the protocol
PersistenceData stays on at least one nodeWhoever runs or pays for that nodeAs long as they keep doing it
PinningA node exempts blocks from garbage collectionThe node operator, or a pinning service for youUntil the pin is removed or the node goes away
CachingA node keeps blocks it fetchedAny node that requested the contentUntil that node's next garbage collection

The name is the one permanent part of IPFS. A CID comes from a hash of the content, so the same bytes imported the same way get the same CID on any node, today or in ten years. How a CID is built from a hash shows why an IPFS link can never quietly point at different content, though it can still point at nothing.

A pin protects data only on the node that holds it. Our guide to how IPFS pinning services keep data online covers the fix when your laptop holds the only copy. Object storage draws the same line under other names, as durability vs availability in object storage explains.

Diagram: a CID is a permanent name, but a file on IPFS stays reachable only while blocks are pinned on a node, a provider record is announced in the DHT, and the node stays online

How Long Does a File Stay on IPFS Without Pinning?

There is no fixed lifetime: an unpinned file lasts on each node until that node runs garbage collection, on its own schedule. In Kubo, the Go implementation, automatic collection stays off unless the daemon starts with --enable-gc.

With it on, Kubo collects every Datastore.GCPeriod (1 hour by default) and when the repo reaches 90% of Datastore.StorageMax (10 GB by default). Files you keep in the Mutable File System are protected the same way as a local pin.

Blocks on disk are only half of it, because other peers find your copy through provider records in the Amino DHT. Those records expire after 48 hours, and Kubo re-announces every 22 hours by default through Provide.DHT.Interval. A node that goes offline drops out of DHT lookups within about two days, once its last records expire; see why provider records expire and get renewed.

These commands from the Kubo CLI reference check each condition on your own node. We have no IPFS binary here, so they are quoted from the docs, not run:

# list the recursive pins that protect content on this node
ipfs pin ls --type=recursive

# delete every local block that no pin or MFS file reaches
ipfs repo gc

# ask the routing system which peers provide a CID (20 by default)
ipfs routing findprovs <cid>

If findprovs prints no peer IDs, no node is announcing the content right now, though the CID is still valid.

What Keeps an IPFS File Reachable Long Term

Persistence comes down to three conditions, and each needs someone behind it. A node holds the blocks under a pin or in MFS, announces the CID, and stays online, which costs disk, bandwidth and an operator's time.

The practical answer is to have more than one party meet those conditions for you. Since a CID means the same bytes everywhere, you can pin it on your own node and on a service, or on two services. Pinning an existing CID needs no re-upload, and multi-node pinning shows how one service spreads copies across its nodes. For the budget side, see what IPFS costs to run or rent.

Filecoin adds a contract to persistence. In a deal, you and a storage provider agree on how much data is stored, for how long and at what cost. The IPFS docs add that the storage is periodically verified. A deal still has an end date, so it gives you long-term persistence rather than permanence, and how IPFS and Filecoin fit together covers the split.

How AIOZ Pin Handles It

AIOZ Pin is a pinning service, so what it sells is persistence. Each pin is a record in your account with a pinned flag and date_pinned and date_unpinned fields. A pin ends when you call the unpin endpoint with its pin ID. What unpinning does to your blocks covers what happens after that.

We bill storage and bandwidth daily from your wallet. The payment docs list storage at $20 per TB per month and bandwidth at $20 per TB, and the first 40K pinned files are free, then $0.10 per 1,000. If your premium gateway is on and the balance runs out, the docs say it switches off and your pinned files stay reachable through the public gateway. That gateway is meant for testing, at 15 requests per minute per CID.

To audit what you are paying to keep, list your pins with pinned=true. This is the request from the AIOZ Pin API reference, with the docs' placeholder keys:

curl --location --request GET 'https://api.aiozpin.network/api/pinning/pins/?offset=0&limit=10&pinned=true&sortBy=name&sortOrder=ASC' \
--header 'pinning_api_key: KEY' \
--header 'pinning_secret_key: SECRET'

The documented response lists totals.files, totals.size and each pin's cid, status and dates, so stale pins and missing CIDs stand out.

What the docs don't cover yet: how long pins are kept if the balance stays at zero, and how many copies of each pin the service stores.

Next step: read the AIOZ Pin payment docs before you budget for files you want online for years.

Frequently Asked Questions

Is IPFS permanent storage?

No. IPFS is a protocol for naming and moving content, and your data stays only while some node keeps it pinned and online.

Does IPFS delete files automatically?

A node deletes unpinned blocks when it runs garbage collection, which in Kubo needs a manual ipfs repo gc or --enable-gc.

If I pin a file, is it safe forever?

It is safe on that node while the pin exists and the node runs. If the node goes offline for good or the service shuts down, that copy goes with it.

Is a CID permanent?

Yes. Different import settings can give the same file a different CID, but a given CID never points at different content.

Can I permanently delete something from IPFS?

You can unpin and garbage-collect your own copies, but you can't remove copies that other nodes pinned or cached.

References

We only send updates when meaningful changes ship, and you can unsubscribe anytime

Related Content

blog thumbnail

ENS IPFS Contenthash: Point an .eth Name at a Website

An ENS IPFS contenthash points your .eth name at a site on IPFS. See the byte format, a real encoding, ipfs vs ipns records, gas used, and common mistakes.

7 min readDecember 04, 2026
blog thumbnail

ERC-721 Metadata JSON: Fields, Images and ipfs:// URIs

ERC-721 metadata JSON explained: the three fields EIP-721 defines, OpenSea attributes and animation_url, ipfs:// image links, and folder CIDs for collections.

8 min readDecember 02, 2026
blog thumbnail

Merkle DAG vs Merkle Tree: What IPFS Changes and Why

Merkle DAG vs Merkle tree explained: a tree gives each node one parent and short proofs, while the DAG IPFS uses shares blocks, carries data and links by CID.

8 min readNovember 30, 2026
blog thumbnail

What Is IPNI? How the IPFS Network Indexer Finds Providers

IPNI is the IPFS network indexer behind cid.contact. See how index providers publish signed advertisement chains and how one HTTP query finds providers.

8 min readNovember 27, 2026
blog thumbnail

On-Chain vs Off-Chain NFT Metadata: Where the Data Lives

On-chain vs off-chain NFT metadata: what the contract stores, what lives on IPFS or a web server, what each costs in gas, and how to check any token yourself.

6 min readNovember 25, 2026
blog thumbnail

What Is a Kademlia DHT? The Routing Algorithm Behind IPFS

A Kademlia DHT finds peers by XOR distance. See how k-buckets, k = 20 and iterative lookups let IPFS locate who holds a CID, and how to watch it on Kubo.

6 min readNovember 23, 2026