Search.../

removeTask( )

Removes an existing task.

Description

The removeTask() function returns a Promise that resolves to the ID of the the removed task after it has been successfully removed.

Syntax

function removeTask(taskId: string): Promise<string>

removeTask Parameters

NAME
TYPE
DESCRIPTION
taskId
string

ID of the task to remove.

Returns

Fulfilled - ID of the removed task.

Return Type:

Promise<string>

Was this helpful?

Remove a task

Copy Code
1import {tasks} from 'wix-crm-backend';
2
3export function removeTask(taskId) {
4 return tasks.removeTask(taskId);
5}
6
7// 3c9683ea-f6cc-470b-b0d1-2eb6b8cea912 - removed task id