Skip to main content
Delete a task by its unique identifier.

Delete a Task

const API_KEY = process.env.TELA_API_KEY;
const taskId = 'task_uuid';

const response = await fetch(`https://api.tela.ai/task/${taskId}`, {
  method: 'DELETE',
  headers: {
    'Authorization': `Bearer ${API_KEY}`,
    'Content-Type': 'application/json'
  }
});

const data = await response.json();
console.log(data);

Parameters

NameTypeRequiredDescription
idstringYesThe UUID of the task to delete

Response

A successful deletion will return a 200 OK status. The task will be marked as deleted but may still be retrievable with the deletedAt field populated.