Skip to content

Delete Library Content

Endpoint used to permanently delete a standalone content from the institution library. Deletion is blocked when the content is linked to an active course.

Note: This endpoint is served by Toolzz LXP API (Encore library service), not by the institution monolith domain. Use the LXP API base URL (e.g. https://lxp.prod.api.toolzz.media).

Warning: Requires a valid admin JWT. Users with student privilege (privilegio_id = 4) cannot manage library content. This is a hard delete — the content cannot be recovered.

Terminal window
curl --request DELETE \
--url 'https://lxp.prod.api.toolzz.media/institution/library/contents/1234567' \
--header 'Authorization: Bearer <token>'
{
"success": true
}

ParameterTypeDescriptionRequired
AuthorizationStringJWT access token (Bearer <token>). Must include institutionId, userID, and subdomain.Yes
ParameterTypeDescriptionRequired
idnumberUnique content identifier (positive integer).Yes

KeyTypeDescription
successbooleantrue when the content was deleted successfully.

HTTPCodeWhen
401unauthenticatedMissing or invalid JWT
403permission_deniedUser is not linked to the institution or is a student
404not_foundContent not found or belongs to another institution
412failed_preconditionContent is linked to an active course, or type is not deletable

Example:

{
"code": "failed_precondition",
"message": "Content is linked to an active course",
"details": null
}

  • Requires valid JWT with admin access (auth: true).
  • Data is scoped to the institution from the token.
  • Students cannot delete library content.
  • HTTPS/TLS for all environments.