public static function delete($path)
{
$silo = Media::get_silo($path, true);
Plugins::act('media_delete_before', $path);
if ($path == '') {
$result = false;
} else {
$result = $silo->silo_delete($path);
}
Plugins::act('media_delete_after', $path, $result);
return $result;
}