To prevent unexpected data loss, caches using active geo-replication in the Enterprise or Enterprise Flash tiers of Azure Cache for Redis have the FLUSHDB and FLUSHALL commands blocked by default. This is because flushing one cache in a geo-replication group will also flush all other synchronized caches.
Now, a control-plane operation is available that will force flush the data in all caches in the same geo replication group. This operation can be used either through the portal or through CLI/PowerShell. As a control-plane operation, Azure role-based access control roles can be used to limit access to specific users. This provides a safer and more consistent way to clear geo-replicated caches.