Deep Dive: How a Deleted Video Actually Disappears

Companion to the main guide's Global distribution. That part explains how a video gets replicated out to caches — the regional shield tier and Google Global Cache (GGC) nodes racked inside ISPs — and how popularity-weighted residency keeps hot objects resident at more nodes, for longer. This file answers the opposite question: when a video is deleted (by the uploader, by a DMCA takedown, by a policy strike, by a privacy change to "private"), how does that removal actually reach every copy sitting in every tier, worldwide?

The Core Misconception to Clear Up First

The natural mental model is "deleting a video sends a delete command to the CDN, and the CDN deletes it" — one action, one effect, roughly instant, the same way deleting a row from a database removes that row. That's not how any multi-tier cache system works, and treating it that way is exactly the mistake that causes real incidents.

The Global distribution part already established the reason this can't be that simple: a popular video isn't stored in one place that you can reach in one hop. It's been proactively copied outward — to a regional shield tier, and from there to potentially thousands of GGC boxes physically sitting inside ISPs around the world, each one having pulled a full copy because enough viewers near it asked for it. Deleting a video means reaching all of those copies, not one row. And critically: the more popular the video was, the more copies of it exist, and the more of them you have to reach — which means the exact videos most likely to trigger an urgent takedown (something that just went viral, and virality is also how bad content gets reported fast) are the ones with the widest cache footprint to clean up.

Why This Is a Fundamentally Different Problem Than Replication

Population (see Global distribution) and invalidation (this file) look symmetric — "copy it out" vs. "copy the deletion out" — but they have opposite tolerance for delay, and that asymmetry is the whole problem:

Population (see Global distribution)Invalidation (this file)
DirectionPull — a cache miss fetches from the tier above, on demandPush — the source of the change has to actively notify every downstream copy; nothing "asks" for a deletion
TriggerReal viewer requests, arriving continuouslyA single event (delete/takedown), arriving once
Tolerable delayMilliseconds-to-seconds is fine — the system is building toward full replication, not racing a clockOften bounded by a legal or policy SLA (minutes, not hours) — "eventually consistent" is not an acceptable answer for CSAM or a valid DMCA notice
If a node is unreachableNo harm — it just hasn't cached the object yet, and will pull it next time it's requestedReal harm — an unreachable node keeps serving deleted content indefinitely unless something else stops it

That last row is the crux: a pull-based system self-heals by design (a stale miss just re-fetches), but a push-based invalidation has no equivalent self-healing property — if the purge message never reaches a node, nothing about that node's normal operation will ever correct it. A caching system optimized purely for the read path (which is what the Global distribution part describes) has no built-in mechanism for this at all; it has to be bolted on separately.

How It Works: Three Layers, Each Covering the Other's Gap

No single mechanism gets a deletion to every copy fast and reliably — real CDN architectures (and, by all public indication, Google's) combine three layers with different speed/completeness trade-offs, so that the fast layer's incompleteness is covered by the slow layer's completeness, and vice versa.

The three invalidation layers, and what each one buys
The three invalidation layers, and what each one buys

Layer 1 (metadata flip) is cheap because it's a single write to the authoritative record, not a fan-out — and it's the layer that actually matters most for stopping future harm, because it guarantees no cache tier can ever legitimately refill itself with this object again. This is the same "small fast metadata, separate from large slow data" split the upload deep-dive describes for Colossus/Bigtable — here it's being used defensively, to gate re-population rather than just to track state.

Layer 2 (manifest gate) is what makes the deletion feel instant to a normal viewer, even though no video byte has moved yet. The Adaptive playback part already established that a player never fetches raw segments blind — it always fetches the manifest first, and manifests are kept on short TTLs precisely because they're small and need to reflect current reality far more tightly than the multi-megabyte segments they point to. Invalidating (or simply regenerating, empty/404, off the metadata flip) the manifest means: within one manifest-refresh interval, every player in the world — regardless of what's still sitting in a GGC cache near it — has no legitimate path to the video anymore. This is the mechanism that makes "the video is gone" true from a user's perspective almost immediately, without waiting on layer 3 at all.

Layer 3 (active purge fan-out) is the one that actually removes or tombstones the bytes at each cache node, and it's structurally the hardest of the three because it's a push into the same wide, ISP-embedded footprint (1,300+ cities, per the Global distribution part) that made replication powerful in the first place — reaching every node is now a liability instead of a feature. Real CDN operators (Akamai, Fastly, CloudFront-style purge APIs are the publicly documented examples of this pattern) solve the speed problem the same way most of them do: a purge is a tombstone write, not a physical delete. Marking an object invalid in a node's local index is fast; actually reclaiming the disk space it occupied is a slower background job. A node checks the tombstone flag before serving what looks like a cache hit — so from the outside, the object is unavailable the instant the tombstone lands, even though the bytes may still physically sit on disk for a while after.

Why Layer 2 Exists at All — the Tension With Popularity-Weighted Residency

The Global distribution part’s whole mechanism for surviving virality is: the more a segment is requested, the more nodes cache it, and the longer they hold it. That's a great property for read scalability and a bad property for deletion speed — it means the videos most likely to need urgent removal (viral content is disproportionately what gets reported/DMCA'd/struck, precisely because virality is what gets it noticed) are the videos with the largest, most stubborn cache footprint to purge. A purge fan-out that has to positively confirm it reached every one of potentially thousands of GGC nodes before a video is considered "safe," for a viral video, is not a bounded-time operation you'd want to depend on alone.

That's exactly the gap layer 2 covers: it decouples "is this reachable by a normal viewer" (fast — one manifest-TTL away, independent of how many caches hold the bytes) from "has every physical copy of the bytes been reclaimed" (slow, proportional to how wide the replication was). Legal/policy takedown SLAs are typically written against the first definition, not the second — "no longer accessible" is a reachability guarantee, and reachability is a manifest-layer property, not a disk-space property.

Different Urgency Tiers Get Different Guarantees

Not every deletion is the same event, and treating them identically is itself a design mistake:

TriggerWhat's requiredWhich layers matter
Uploader deletes their own videoEventually gone, no hard SLALayer 1 (stops re-population) + Layer 2 (manifest 404s quickly) are sufficient; Layer 3 can be pure best-effort/TTL-driven
Video set to PrivateSame as delete from a reachability standpoint, but the source file and renditions are NOT actually removed from origin (see Origin storage) — it's a visibility flag, not a deletionLayer 1 + Layer 2 only; there's nothing for Layer 3 to purge, because the durable copy is meant to persist
Copyright (Content ID / DMCA)Bounded, but the exact bound varies by jurisdiction/policy — commonly framed as "expeditious removal"All three layers, with Layer 3's purge fan-out prioritized/expedited rather than riding the normal best-effort queue
Trust & Safety (CSAM, terrorism content, court order)Tightest bound — publicly reported industry norms are single-digit minutes, not hoursAll three layers, plus (not publicly detailed at the mechanism level) additional out-of-band signals — e.g., hash-matching systems that can block re-upload entirely, independent of this pipeline

The pattern across the whole table: Layer 1 and Layer 2 give you the fast, bounded guarantee for every case; Layer 3's completeness is what varies by urgency, because it's the layer whose cost genuinely scales with how widely the content had been replicated.

The Invariants

  • Guarantees: Once the origin metadata flip (Layer 1) happens, no cache tier can ever legitimately re-populate itself with the deleted object — the leak is sealed at the source, permanently, regardless of what any individual edge node still has cached. Reachability through the normal playback path (manifest → segment) is broken within one manifest-refresh interval, independent of how many physical copies of the segment bytes still exist anywhere in the GGC fleet.
  • Does not guarantee: That every physical byte is purged from every node instantaneously — a tombstoned segment may still occupy disk on some GGC box for a period after the video is functionally "gone" to every normal viewer, and a purge fan-out reaching potentially thousands of geographically scattered nodes is not an atomic, all-or-nothing operation. This is why urgency tiers exist (table above) rather than one universal SLA — "invisible to users" and "purged everywhere on disk" are different guarantees, satisfied on different timelines.

Putting It Together

A deletion event, layer by layer
A deletion event, layer by layer

The gap between t=+ε (functionally invisible to users) and t=+δ (physically purged everywhere) is the whole reason this needs three layers instead of one — and it's the same gap that makes "cache invalidation" a genuinely hard distributed-systems problem rather than a one-line API call.