In Django, how to clear all the memcached keys and values?
from django.core.cache import cachecache._cache.flush_all()
Also see this ticket, it has a patch (that I haven't tested) to flush any type of cache backend: http://code.djangoproject.com/ticket/11503