Skip to main content

Deleting tasks

This section provides information on how to delete tasks.

When a task has not started yet, it can be cancelled and will be removed at a later stage.

A running task cannot be removed.

API reference:

Required scopes:

  • Taskurai.Task.Delete

Prerequisites

Deleting a task

To delete a previously created task, use its ID.

await taskurai.DeleteTaskAsync(taskId);

Next, run the console application to validate:

dotnet run