public function clearThumbnailAction()
{
$success = false;
if ($asset = Asset::getById($this->getParam("id"))) {
if (method_exists($asset, "clearThumbnails")) {
$asset->clearThumbnails(true);
// force clear
$asset->save();
$success = true;
}
}
$this->_helper->json(["success" => $success]);
}