Delete task
This API deletes one or more tasks from the system.
Request methods
Primary method (DELETE): https://tasks.<server_address>/backend/public/dashboard/tasks
Alternative method (GET): https://tasks.<server_address>/backend/public/dashboard/tasks/delete
Request parameters
-
list_id — a comma-separated string of task IDs to delete, e.g., "101,102,103"
-
For GET requests only:
-
usr_id — user ID performing the deletion
-
acc_id — account ID associated with the tasks
Example DELETE request
fetch("https://tasks.<server_address>/backend/public/dashboard/tasks", {
method: "DELETE",
headers: {
"accept": "*/*",
"content-type": "application/json",
"x-csrf-token": "<your_csrf_token>"
},
body: JSON.stringify({
list_id: "101,102,103"
}),
credentials: "include"
})
|
Response
{
"success": true,
"msg": "Tasks successfully deleted"
}
|
-
success — true if the deletion was successful, false otherwise
-
msg — server message providing details about the operation