Cache::FileCache
implements the Cache::Cache
interface.
Instead of messing directly with the filesystem, you might want to write a short script such as
use strict; use warnings;
use Cache::FileCache;
my $cache = Cache::FileCache->new(
{namespace => 'whatever namespace you are using'}
);
$cache->clear; # or Clear to remove all objects from all caches of this type.