Follow the instructions below to use flush_all.

flush_all for SASL protected Memcached Enterprise cloud databases

If your resource has SASL authentication enabled, you can’t use nc command or telnet to run flush_all on your Memcached Enterprise Cloud resource. You have to download a Memcached CLI client that supports SASL. We recommend to use the bmemcached-CLI client, and the instructions here is for this client. This instruction refers to Ubuntu OS. Make the necessary changes if you are using other Linux flavor.

$ wget
$ sudo apt-get install unzip python-pip
$ unzip -d bmemcached-cli
$ cd bmemcached-cli/bmemcached-cli-master/
$ sudo pip install --upgrade pip
$ sudo pip install . -r requirements.pip

Now you can run the flush_all command using the bmemcached-cli. The usage is simple:

bmemcached-cli [user]:[password]@[host]:[port]

usage example:

$ bmemcached-cli
([B]memcached) flush_all

flush_all for Memcached Enterprise cloud databases

$ telnet 12345
Connected to
Escape character is '^]'.
Connection closed by foreign host.