curl --request DELETE \
--url https://api.example.com/api/tasks/:idDelete a task for the authenticated user
curl --request DELETE \
--url https://api.example.com/api/tasks/:idcurl -X DELETE https://api.dailytracker.com/api/tasks/15 \
-H "Authorization: Bearer YOUR_TOKEN_HERE"
204 No Content
{
"error": "Unauthorized",
"message": "Invalid or missing authentication token"
}
{
"error": "Not Found",
"message": "Task not found"
}