unenroll_user_product
Remove a user's enrollment from a specified course, bundle, or subscription. Use to permanently cancel access after the user confirms removal.
Instructions
๐ด DESTRUCTIVE ยท deletes ยท DELETE /v2/users/{id}/enrollment
Unenroll user from a product specified by the provided product id
Behavior: permanently removes the addressed record from the live school โ no undo from this server. Auth (admin API token + Lw-Client id) is injected server-side, never by the model; calls are throttled to stay under LearnWorlds' 30-per-10s cap and retried on 429/5xx.
Parameters: the whole JSON payload goes in the single body argument, forwarded verbatim (the spec leaves body optional, but this endpoint expects one).
Returns: HTTP 200/204, with a body that is usually empty on success. A non-2xx reply surfaces as a tool error with that status and the API error payload โ 401 bad/expired token, 403 not permitted, 404 no such record, 422 rejected input.
Use when: only after the user confirms the removal. To merely revoke access or deactivate, use the matching ๐ก update or unenroll tool instead. Related Users tools: enroll_user_product, get_courses_enrollments_user, get_products_user, get_seat_offerings_that_user_is_member, get_user.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | User Id or email (encoded string) | |
| body | No |