Habari\Media::delete PHP Метод

delete() публичный статический Метод

Delete the asset at the specified virtual path
public static delete ( string $path ) : boolean
$path string The virtual path of the asset to delete
Результат boolean true on success
    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;
    }