original_string: public function destroy($id)
      {
          $file = $this->fileRepo->getById($id);
  
          if (!empty($file)) {
              $this->authorize('delete', $file);
              $this->fileRepo->delete($file);
              return $this->respondWithSimpleSuccess(['success' => true]);
          }
          return $this->respondNotFound();
      }
code: public function destroy($id)
      {
          $file = $this->fileRepo->getById($id);
  
          if (!empty($file)) {
              $this->authorize('delete', $file);
              $this->fileRepo->delete($file);
              return $this->respondWithSimpleSuccess(['success' => true]);
          }
          return $this->respondNotFound();
      }
code_tokens: public function destroy ( $ id ) { $ file = $ this -> fileRepo -> getById ( $ id ) ; if ( ! empty ( $ file ) ) { $ this -> authorize ( 'delete' , $ file ) ; $ this -> fileRepo -> delete ( $ file ) ; return $ this -> respondWithSimpleSuccess ( [ 'success' => true ] ) ; } return $ this -> respondNotFound ( ) ; }
docstring: Remove the specified file from database.
  
  @param int $id Id of the file
  
  @return \Illuminate\Http\JsonResponse
docstring_tokens: Remove the specified file from database .