> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://apidoc.dreamclass.io/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://apidoc.dreamclass.io/_mcp/server.

# DeleteRecurringLecture

DELETE https://dreamclassapi/v1/calendar/lecture/recurring/%7Bid%7D

Delete recurring lecture

The call will fail if the specified entity is associated with other entities such as attendance

Reference: https://apidoc.dreamclass.io/dream-class-api/calendar/delete-recurring-lecture

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: collection
  version: 1.0.0
paths:
  /dreamclassapi/v1/calendar/lecture/recurring/%7Bid%7D:
    delete:
      operationId: delete-recurring-lecture
      summary: DeleteRecurringLecture
      description: >-
        Delete recurring lecture


        The call will fail if the specified entity is associated with other
        entities such as attendance
      tags:
        - subpackage_calendar
      parameters:
        - name: tenant
          in: header
          required: false
          schema:
            type: string
        - name: schoolCode
          in: header
          required: false
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/Calendar_DeleteRecurringLecture_Response_200
servers:
  - url: https:/
    description: https://{server}
  - url: https://your-webhook-url
    description: https://your-webhook-url
components:
  schemas:
    DreamclassapiV1CalendarLectureRecurring7Bid7DDeleteResponsesContentApplicationJsonSchemaClassroom:
      type: object
      properties:
        id:
          type: integer
      required:
        - id
      title: >-
        DreamclassapiV1CalendarLectureRecurring7Bid7DDeleteResponsesContentApplicationJsonSchemaClassroom
    DreamclassapiV1CalendarLectureRecurring7Bid7DDeleteResponsesContentApplicationJsonSchemaClassCourse:
      type: object
      properties:
        id:
          type: integer
      required:
        - id
      title: >-
        DreamclassapiV1CalendarLectureRecurring7Bid7DDeleteResponsesContentApplicationJsonSchemaClassCourse
    Calendar_DeleteRecurringLecture_Response_200:
      type: object
      properties:
        id:
          type: integer
        rrule:
          type: string
        title:
          type: string
        duration:
          type: integer
        classroom:
          $ref: >-
            #/components/schemas/DreamclassapiV1CalendarLectureRecurring7Bid7DDeleteResponsesContentApplicationJsonSchemaClassroom
        classCourse:
          $ref: >-
            #/components/schemas/DreamclassapiV1CalendarLectureRecurring7Bid7DDeleteResponsesContentApplicationJsonSchemaClassCourse
        meetingLink:
          type: string
          format: uri
        startDateTime:
          type: string
          format: date-time
        meetingPassword:
          type: string
      required:
        - id
        - rrule
        - title
        - duration
        - classroom
        - classCourse
        - meetingLink
        - startDateTime
        - meetingPassword
      title: Calendar_DeleteRecurringLecture_Response_200

```

## Examples



**Response**

```json
{
  "id": 12,
  "rrule": "DTSTART;TZID=USA/Pacific:20241101T130000\nRRULE:FREQ=WEEKLY;BYDAY=FR;UNTIL=20241231T215959;INTERVAL=1",
  "title": "Introduction to Programming",
  "duration": 60,
  "classroom": {
    "id": 8
  },
  "classCourse": {
    "id": 46
  },
  "meetingLink": "https://example.com/meeting",
  "startDateTime": "2024-11-05T10:10:00",
  "meetingPassword": "password123"
}
```

**SDK Code**

```python Calendar_DeleteRecurringLecture_example
import requests

url = "https://https/dreamclassapi/v1/calendar/lecture/recurring/%7Bid%7D"

headers = {
    "tenant": "{{tenant}}",
    "schoolCode": "{{schoolCode}}"
}

response = requests.delete(url, headers=headers)

print(response.json())
```

```javascript Calendar_DeleteRecurringLecture_example
const url = 'https://https/dreamclassapi/v1/calendar/lecture/recurring/%7Bid%7D';
const options = {
  method: 'DELETE',
  headers: {tenant: '{{tenant}}', schoolCode: '{{schoolCode}}'}
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Calendar_DeleteRecurringLecture_example
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://https/dreamclassapi/v1/calendar/lecture/recurring/%7Bid%7D"

	req, _ := http.NewRequest("DELETE", url, nil)

	req.Header.Add("tenant", "{{tenant}}")
	req.Header.Add("schoolCode", "{{schoolCode}}")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Calendar_DeleteRecurringLecture_example
require 'uri'
require 'net/http'

url = URI("https://https/dreamclassapi/v1/calendar/lecture/recurring/%7Bid%7D")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)
request["tenant"] = '{{tenant}}'
request["schoolCode"] = '{{schoolCode}}'

response = http.request(request)
puts response.read_body
```

```java Calendar_DeleteRecurringLecture_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.delete("https://https/dreamclassapi/v1/calendar/lecture/recurring/%7Bid%7D")
  .header("tenant", "{{tenant}}")
  .header("schoolCode", "{{schoolCode}}")
  .asString();
```

```php Calendar_DeleteRecurringLecture_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('DELETE', 'https://https/dreamclassapi/v1/calendar/lecture/recurring/%7Bid%7D', [
  'headers' => [
    'schoolCode' => '{{schoolCode}}',
    'tenant' => '{{tenant}}',
  ],
]);

echo $response->getBody();
```

```csharp Calendar_DeleteRecurringLecture_example
using RestSharp;

var client = new RestClient("https://https/dreamclassapi/v1/calendar/lecture/recurring/%7Bid%7D");
var request = new RestRequest(Method.DELETE);
request.AddHeader("tenant", "{{tenant}}");
request.AddHeader("schoolCode", "{{schoolCode}}");
IRestResponse response = client.Execute(request);
```

```swift Calendar_DeleteRecurringLecture_example
import Foundation

let headers = [
  "tenant": "{{tenant}}",
  "schoolCode": "{{schoolCode}}"
]

let request = NSMutableURLRequest(url: NSURL(string: "https://https/dreamclassapi/v1/calendar/lecture/recurring/%7Bid%7D")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```