Deletes one review, as its author or as a course admin.
The author may always delete their own review, including one that is held or hidden. A course admin may delete only an approved review — a held one belongs to the moderation queue instead. Deleting also removes the review's moderation reports and recomputes the course's rating summary.
Endpoint
Method:
DELETEPath:
/courses/{course_id}/reviews/{review_id}Edition: PRO
Controller:
FluentCommunityPro\App\Modules\CourseReview\Http\Controllers\CourseReviewController@deleteReviewRoute source:
fluent-community-pro/app/Modules/CourseReview/Http/course_review_api.php:10A review ID that belongs to another course answers 404.
can_reviewandreview_promptcome back as null when an admin deletes somebody else's review, and carry fresh values when an author deletes their own.A review that was never live fires no deletion hook.
Sent as POST with
X-HTTP-Method-Override: DELETEby the plugin's own client.
Inferred sample
No recorded sample exists for this endpoint yet, so the payload below is inferred from the controller and model definitions. Field names and types are accurate; values are placeholders.
DELETE Delete Course Review
Deletes one review, as its author or as a course admin.
Controller: FluentCommunityPro\App\Modules\CourseReview\Http\Controllers\CourseReviewController@deleteReview
Route source: fluent-community-pro/app/Modules/CourseReview/Http/course_review_api.php:10
Authorizations
WordPress Application Passwords — use Basic auth with username:application_password.
Responses
Successful response