media = $media; } /** * Execute the job. * * @return void */ public function handle() { $media = $this->media; if(!$media || (bool) config_cache('pixelfed.cloud_storage') === false) { return; } $fs = Storage::disk(config('filesystems.cloud')); if(!$fs) { return; } if($fs->exists($media->media_path)) { $fs->delete($media->media_path); } } }