public function destroy(Schedule $schedule)
    {
        try {
            execute(new DeleteScheduleCommand($schedule));
        } catch (QueryException $e) {
            throw new BadRequestHttpException();
        }

        return $this->noContent();
    }
public function destroy(Schedule $schedule)
    {
        try {
            execute(new DeleteScheduleCommand($schedule));
        } catch (QueryException $e) {
            throw new BadRequestHttpException();
        }

        return $this->noContent();
    }
public function destroy ( Schedule $ schedule ) { try { execute ( new DeleteScheduleCommand ( $ schedule ) ) ; } catch ( QueryException $ e ) { throw new BadRequestHttpException ( ) ; } return $ this -> noContent ( ) ; }
Delete a schedule.

@param \CachetHQ\Cachet\Models\Schedule $schedule

@return \Illuminate\Http\JsonResponse
Delete a schedule .