Pastes expire after user-defined TTL or default ( days). Two cleanup approaches:
Lazy deletion: check expiration on read, return if expired
Active cleanup: background job scans for expired pastes
Use both: lazy for immediate consistency, background job for storage reclamation. Partition by creation date for efficient bulk deletes.