Permanently removes aDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/marchena96/Paradigma-lab1/llms.txt
Use this file to discover all available pages before exploring further.
Library record from the database. The controller first checks whether the library exists; if it does not, it returns 404 immediately. When the library is found it is passed to LibrariesService.Delete, which calls EF Core’s Remove and flushes the change with SaveChangesAsync.
Endpoint
Authentication
No authentication is required. TheDelete action does not carry an [Authorize] attribute.
Path Parameters
The unique integer ID of the library to delete. The controller performs an existence check against this value before proceeding with the deletion.
Response
204 No Content
Returned when the library (and its cascaded books) has been successfully deleted. The response body is empty.404 Not Found
Returned when no library with the givenlibraryId exists. No deletion is performed. The response body is empty.
Status Codes
| Status | Meaning |
|---|---|
204 | No Content — the library was deleted successfully. |
404 | Not Found — no library with the given libraryId was found. |
Controller Source
Example Request
Example Response
A204 No Content response has no body. A successful deletion looks like this at the HTTP level: