0

Remove Task From List

by
Published Oct 17, 2025

Remove a task from an additional List. You can't remove a task from its home List. \ \ ***Note:** This endpoint requires the [Tasks in Multiple List ClickApp](https://help.clickup.com/hc/en-us/articles/6309958824727-Tasks-in-Multiple-Lists) to be enabled.*

Script clickup Verified

The script

Submitted by hugo697 Bun
Verified 235 days ago
1
//native
2
type Clickup = {
3
  token: string;
4
};
5
/**
6
 * Remove Task From List
7
 * Remove a task from an additional List. You can't remove a task from its home List. \
8
 \
9
***Note:** This endpoint requires the [Tasks in Multiple List ClickApp](https://help.clickup.com/hc/en-us/articles/6309958824727-Tasks-in-Multiple-Lists) to be enabled.*
10
 */
11
export async function main(auth: Clickup, list_id: string, task_id: string) {
12
  const url = new URL(
13
    `https://api.clickup.com/api/v2/list/${list_id}/task/${task_id}`,
14
  );
15

16
  const response = await fetch(url, {
17
    method: "DELETE",
18
    headers: {
19
      Authorization: auth.token,
20
    },
21
    body: undefined,
22
  });
23
  if (!response.ok) {
24
    const text = await response.text();
25
    throw new Error(`${response.status} ${text}`);
26
  }
27
  return await response.json();
28
}
29