When are files in 'blobs' directory that are no longer valid cleaned up?

Which directory specifically? There are several directories that contain blobs.

You mentioned snapshots, so maybe that’s what you’re talking about. SingleStore automatically cleans up old snapshots as part of its normal operation.

The engine variable snapshot_trigger_size sets a threshold for the transaction log’s size (in bytes) that must be reached before the next snapshot is taken (SNAPSHOT DATABASE · SingleStore Documentation). Old snapshots are cleaned up automatically over time as new snapshots are taken.

Keep in mind that if your snapshot directory is growing without control, you may need to increase your disk space or consider adjusting the snapshots-to-keep configuration to limit the number of snapshots retained(The snapshot directory has a lot of capacity).