function($media)
{
if (is_string($media)) {
$media = $this->getMedia($media);
}
if (!is_array($media)) {
throw new Exception(X::_("The media doesn't exist"));
}
if ($thumbs = $this->getThumbsPath($media)) {
foreach($thumbs as $th){
if ($this->fs->exists($th)) {
unlink($th);
}
}
}
}