redis can find the keys of the specified pattern:
redis-cli -h [host] -p [port] -n [db] KEYS "pattern"
But how to delete the keys of a specific pattern during the delete operation?
Delete keys of a specific pattern in batches under Redis
redis-cli -h [host] -p [port] -n [db] KEYS "pattern" | xargs redis-cli -h [host] -p [port] -n [db] DEL
How to atomically delete keys matching a pattern using Redis
Delete keys of a specific pattern in batches under Redis
How to atomically delete keys matching a pattern using Redis