Skip to content

Deletes a course together with all of its content and every trace of student participation in it.

Endpoint

  • Method: DELETE

  • Path: /admin/courses/{course_id}

  • Edition: Core

  • Controller: CourseAdminController@deleteCourse

  • Route source: fluent-community/Modules/Course/Http/course_api.php:27

  • Controller source: fluent-community/Modules/Course/Http/Controllers/CourseAdminController.php

  • Requires a course admin for this course, or a WordPress user with manage_options.

  • Destructive and cascading: reactions, comments, lessons, sections and every student enrolment record for the course are deleted along with it, and progress cannot be recovered.

Live sample

The request and response below were recorded against a running FluentCommunity install and then anonymised — member names, emails, avatars and post content are fictional, and long collections are trimmed to a few entries.

DELETE Delete Course

DELETE
/admin/courses/{course_id}

Deletes a course together with all of its content and every trace of student participation in it.

Controller: CourseAdminController@deleteCourse
Route source: fluent-community/Modules/Course/Http/course_api.php:27

Authorizations

ApplicationPasswords

WordPress Application Passwords — use Basic auth with username:application_password.

Type
API Key (header: Authorization)

Parameters

Path Parameters

course_id*

Course ID extracted from the URL path.

Type
integer
Required

Responses

Successful response

application/json
JSON
{
  
"message": "string"
}

Playground

Authorization
Variables
Key
Value

Samples

Powered by VitePress OpenAPI

FluentCommunity developer documentation