'Erase the complete cache directory.'

def clear(self, warn=True):

    if warn:
        self.warn('Flushing    completely    the    cache')
    if (self.cachedir is not None):
        rm_subdirs(self.cachedir)
