How to delete multiple azure redis keys by pattern using Redis Console in Azure Portal?

Keru 11 Reputation points

Hi. How to delete Azure Redis keys by pattern using Redis Console in Azure Portal?

I know how to delete a single key by key_name using "del key_name".
I'm hoping there's a way to delete multiple keys by pattern- something like "del key_name_pattern"?

I cannot use redis-cli atm.


EDIT: more info
I would like to convert the command below to a format that is accept by Redis Console in Azure Portal:

redis-cli --scan --pattern users:* | xargs redis-cli del

EDIT: more info - below the commands I've tried

Azure Cache for Redis
Azure Cache for Redis
An Azure service that provides access to a secure, dedicated Redis cache, managed by Microsoft.
219 questions
{count} vote

1 answer

Sort by: Most helpful
  1. KalyanChanumolu-MSFT 8,316 Reputation points

    @Paul Garner Clarifying on the above response, to delete multiple keys by pattern match, output of the scan will need to be piped to the del command.
    This is not supported on the portal today. You will need to use a Redis client.

    If this is an important feature for you to have, please submit a feature request on our UserVoice site and the product team will prioritize accordingly.