original_string: public function destroy(Schedule $schedule)
      {
          try {
              execute(new DeleteScheduleCommand($schedule));
          } catch (QueryException $e) {
              throw new BadRequestHttpException();
          }
  
          return $this->noContent();
      }
code: public function destroy(Schedule $schedule)
      {
          try {
              execute(new DeleteScheduleCommand($schedule));
          } catch (QueryException $e) {
              throw new BadRequestHttpException();
          }
  
          return $this->noContent();
      }
code_tokens: public function destroy ( Schedule $ schedule ) { try { execute ( new DeleteScheduleCommand ( $ schedule ) ) ; } catch ( QueryException $ e ) { throw new BadRequestHttpException ( ) ; } return $ this -> noContent ( ) ; }
docstring: Delete a schedule.
  
  @param \CachetHQ\Cachet\Models\Schedule $schedule
  
  @return \Illuminate\Http\JsonResponse
docstring_tokens: Delete a schedule .