delete($media); app(CacheManager::class)->delete($media); unset ($media); $job->delete(); } public function failed($data, Throwable $e) { Log::error("Deleting of image failed", [ 'message' => $e->getMessage(), 'exception' => $e, 'data' => $data, ]); throw $e; } }