public function regenerateVideoPreview (string $id)
    {
        $resource = HCResources::findOrFail ($id);

        //TODO check if resource is video

        $storagePath = storage_path ('app/');
        $previewPath = str_replace ('-', '/', $resource->id);

        if (file_exists($storagePath . 'video-previews/'. $previewPath))
            removeDirectory ($storagePath . 'video-previews/'. $previewPath);

        if (file_exists($storagePath . 'cache/' . $previewPath))
            removeDirectory ($storagePath  . 'cache/' . $previewPath);

        $this->generateVideoPreview ($resource, $storagePath, $previewPath);

        return ["success" => true];
    }