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