--scan iterates keys without blocking the server, unlike KEYS, and --count tunes the batch size. session:* matches all keys in that namespace. Feed the output to a script for targeted deletion with DEL.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.