Skip to main content
DELETE
/
authors
/
{id}
Delete Author
curl --request DELETE \
  --url https://api.example.com/authors/{id}
{
  "204": {},
  "401": {}
}
Deletes an author from the library system.

Authentication

This endpoint requires HTTP Basic Authentication.

Path Parameters

id
long
required
The unique identifier of the author to delete

Response

This endpoint returns no content on success.

Status Codes

204
No Content
Author successfully deleted
401
Unauthorized
Authentication credentials are missing or invalid

Example Request

curl -X DELETE http://localhost:8080/authors/1 \
  -u username:password

Example Response

No content is returned. The HTTP status code 204 indicates successful deletion.

Build docs developers (and LLMs) love