Deletes a course together with all of its content and every trace of student participation in it.
Endpoint
Method:
DELETEPath:
/admin/courses/{course_id}Edition: Core
Controller:
CourseAdminController@deleteCourseRoute source:
fluent-community/Modules/Course/Http/course_api.php:27Controller source:
fluent-community/Modules/Course/Http/Controllers/CourseAdminController.phpRequires 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
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
WordPress Application Passwords — use Basic auth with username:application_password.
Parameters
Path Parameters
Course ID extracted from the URL path.
Responses
Successful response