--- title: "Delete task" slug: "nclue-deletetask" updated: 2026-09-17T09:35:51Z published: 2026-09-17T09:35:51Z canonical: "api.ncloud-docs.com/nclue-deletetask" --- > ## Documentation Index > Fetch the complete documentation index at: https://api.ncloud-docs.com/llms.txt > Use this file to discover all available pages before exploring further. # Delete task Available in VPC Use this when you want to delete a task model that you no longer use or that is unnecessary. The deletion conditions for a task are as follows: | Deletion availability | Task status | Task usage status | | --- | --- | --- | | | - `registered`: Registered - `completed`: Available - `failed`: Failed | - If there is no function (task model run or custom attributes) that uses the task you want to delete - Even if there is a function that uses the task you want to delete, it has already been completed (`completed`, `failed`) | | Unavailable | - `pending`: Pending - `in_progress`: Creating | If the function that uses the task you want to delete (task model run or shopping intent) is registered (`registered`) or running (`pending`, `in_progress`) | Note If the deletion is not possible, you will receive an error message. Try again under conditions where deletion is possible. ## Request This section describes the request format. The method and URI are as follows: | Method | URI | | --- | --- | | DELETE | /tasks/{task_id} | ### Request headers For information about the headers common to all NCLUE APIs, see [NCLUE request headers](/docs/en/nclue-api-overview#%EC%9A%94%EC%B2%AD%ED%97%A4%EB%8D%94). ### Request path parameters You can use the following path parameters with your request: | Field | Type | Required | Description | | --- | --- | --- | --- | | `task_id` | String | Required | Task ID - See [Get task list](/docs/en/nclue-gettasklist). | ### Request example The request example is as follows: ``` curl --location --request DELETE 'https://nclue.apigw.ntruss.com/api/v1/tasks/{task_id}' \ --header 'X-NCP-APIGW-TIMESTAMP: {Timestamp}' \ --header 'X-NCP-IAM-ACCESS-KEY: {Access Key}' \ --header 'X-NCP-APIGW-SIGNATURE-V2: {API Gateway Signature}' ``` ## Response This section describes the response format. ### Response body The response body includes the following data: | Field | Type | Required | Description | | --- | --- | --- | --- | | `task_id` | String | - | Task ID | ### Response status codes For response status codes common to NCLUE, see [NCLUE response status codes](/docs/en/nclue-api-overview#%EC%9D%91%EB%8B%B5%EC%83%81%ED%83%9C%EC%BD%94%EB%93%9C). ### Response example The response example is as follows: ``` { "task_id": "f5aebc0c-****-****-****-b201bc64b1c9" } ```