Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/Miguel-Rodriguez15/msvc/llms.txt

Use this file to discover all available pages before exploring further.

Permanently removes a Curso record from the cursos table. Because the cursoUsuarios relationship is mapped with cascade = CascadeType.ALL and orphanRemoval = true, all associated CursoUsuario rows in the cursos_usuarios junction table are deleted automatically in the same transaction. This operation is irreversible. Users stored in msvc-usuarios are not affected — only the enrollment links are removed alongside the course. No authentication is required for this endpoint.

Endpoint

DELETE http://localhost:8002/{id}
Via API Gateway:
DELETE http://localhost:8090/api/cursos/{id}

Path Parameters

id
number
required
The primary key of the course to delete.

Response

204 No Content — The course and all its enrollment records were deleted. The response body is empty. 404 Not Found — No course with the given id exists. The response body is empty.

Examples

Request

curl -X DELETE http://localhost:8002/1

Response — 204 No Content

(empty body)

Response — 404 Not Found

(empty body)

Deleting a course cascades to all CursoUsuario records linked to it (CascadeType.ALL, orphanRemoval = true). Enrolled users in msvc-usuarios are not deleted, but the enrollment association is permanently removed. If you only want to remove a single enrollment junction record without deleting the entire course, use DELETE /eliminar-curso-usuario/{id}.

Build docs developers (and LLMs) love