# Remove material from online lesson **PATCH /api/v1/online-lesson/{id}/remove-material/{material}** Delete a material/resource from an online lesson. Only admins and lecturers can remove materials. ## Servers - Local server: http://localhost:3500 (Local server) - Production server: https://api.echoplain.social (Production server) ## Parameters ### Path parameters - **id** (string) UUID of the online lesson - **material** (string) UUID of the material to remove ## Responses ### 200 Material removed successfully ### 400 Default bad request error 400 response #### Body: application/json (object) - **message** (string) Response message - **error** (string) - **statusCode** (number) ### 403 Forbidden - Admin or Lecturer role required ### 404 Material or online lesson not found [Powered by Bump.sh](https://bump.sh)