public function delete(KalturaDistributionDeleteJobData $data)
 {
     $distributionProfile = $data->distributionProfile;
     $youTubeApiImpl = new YouTubeApiImpl($distributionProfile->username, $distributionProfile->password, $this->getHttpClientConfig());
     $youTubeApiImpl->deleteEntry($data->remoteId);
     $captionsInfo = $data->providerData->captionsInfo;
     /* @var $captionInfo KalturaYouTubeApiCaptionDistributionInfo */
     foreach ($captionsInfo as $captionInfo) {
         if ($captionInfo->action == KalturaYouTubeApiDistributionCaptionAction::DELETE_ACTION) {
             $youTubeApiImpl->deleteCaption($data->remoteId, $captionInfo->remoteId);
         }
     }
     return true;
 }
 public function delete(KalturaDistributionDeleteJobData $data)
 {
     $distributionProfile = $data->distributionProfile;
     $youTubeApiImpl = new YouTubeApiImpl($distributionProfile->username, $distributionProfile->password);
     $youTubeApiImpl->deleteEntry($data->remoteId);
     return true;
 }