/**
  * @param int $id
  * @return Illuminate\Http\JsonResponse
  */
 public function deleteIndex($id)
 {
     try {
         $count = $this->revisionActor->findByActor($id)->count();
         if ($count > 0) {
             throw new \Exception('COULD_NOT_DELETE_ACTOR');
         }
         $actor = $this->actor->find($id);
         if ($actor) {
             $actor->delete();
         }
         return $this->getJsonResponse($id);
     } catch (\Exception $exception) {
         return $this->getJsonResponse(['data' => $exception->getMessage(), 'error' => true], false);
     }
 }