Skip to main content

Delete Course

This endpoint deletes a course and removes its Firestore mirror.

Endpoint​

DELETE /api/course/:id

Authentication​

Authentication is required. User must have the admin or creator role.

Path Parameters​

ParameterTypeRequiredDescription
idIntegerYesUnique identifier of the course to delete

Response​

Success Response​

  • Status Code: 204 No Content
  • Content: Empty body

Error Responses​

  • 404 Not Found — No course exists with the supplied ID.
  • 403 Forbidden — User does not have admin or creator privileges.
  • 500 Internal Server Error — Unexpected server error.

Notes​

  • Deleting a course removes its row from the database and deletes the corresponding Firestore document so it disappears from the mobile app.
  • Collections and content remain intact — only the course wrapper and its GroupCourse / CollectionCourses join rows are removed.

Example​

curl -X DELETE "https://api.tribesocial.io/api/course/42" \
-H "Authorization: Bearer YOUR_AUTH_TOKEN"