To flush/clear the contents of memcached server use following command
echo 'flush_all' | nc localhost 11211
Where localhost is memcached hostname and 11211 is memcached port number.
Command syntax:
echo 'flush_all' | nc server_hostname memcached_port_number
-Sany