Endpoint
Permanently deletes a task from the database
Request
Path Parameters
The unique identifier of the task to delete
Example Request
Response
Status Codes
Successfully deleted the task. No response body is returned.
Task with the specified ID does not exist
Invalid ID parameter (must be a valid number)
Example Responses
Important Notes
A successful deletion returns a
204 No Content status with an empty response body. This is the standard REST convention for DELETE operations.Implementation Details
This endpoint is defined insrc/routes/tasks/tasks.routes.ts:96-116 and implemented in src/routes/tasks/tasks.handlers.ts:84-99.
The endpoint validates the ID parameter using IdParamsSchema from the stoker library, attempts to delete the task from the database, and returns:
204 No Contentif the deletion was successful (rowsAffected > 0)404 Not Foundif no task exists with the specified ID (rowsAffected === 0)
