Skip to main content

DELETE /tasks

Description

Deletes data on a task and returns an empty json object

The route handles the DELETE request made to the /tasks/{id} path.

Only one task can be removed per request. All child tasks, if any, are also removed.

HTTP methodRouteQuery parameter
DELETE/tasksid

Query parameters

The ID of a task that should be removed is sent in the request line.

NameTypeDescription
idnumberRequired. The id of a task to be removed.

Payload

No payload is required.

Response

The route returns an empty json object in case of a successful request.

The HTTP status code shows whether the request succeeds (response.status == 200) or fails (response.status == 500).


Related articles: