# "Tasks" Endpoints - DELETE Workspace Project Task

**URL:** https://community.toggl.com/t/tasks-endpoints-delete-workspace-project-task/382
**Category:** API References
**Tags:** delete, tasks, api, endpoints
**Created:** [December 2, 2024, 5:30pm UTC](https://community.toggl.com/t/tasks-endpoints-delete-workspace-project-task/382 "2024-12-02T17:30:44Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Support](https://yyz2.discourse-cdn.com/flex012/user_avatar/community.toggl.com/support/32/1577_2.png) [@Support](https://community.toggl.com/u/Support)
#### Post date: [December 2, 2024, 5:30pm UTC](https://community.toggl.com/t/tasks-endpoints-delete-workspace-project-task/382/1 "2024-12-02T17:30:44Z")

</div>

```auto
https://api.track.toggl.com/api/v9/workspaces/{workspace_id}/projects/{project_id}/tasks/{task_id}

```

Delete projects task for given workspace.

- cURL
- Go
- Ruby
- JavaScript
- Python
- Rust

```auto
extern crate tokio;extern crate serde_json;use reqwest::{Client};use reqwest::header::{CONTENT_TYPE};#[tokio::main]async fn main() -> Result<(), reqwest::Error> { let client = Client::new().basic_auth("<email>", "<password>"); let json = client.request(Method::DELETE, "https://api.track.toggl.com/api/v9/workspaces/{workspace_id}/projects/{project_id}/tasks/{task_id}".to_string()) .header(CONTENT_TYPE, "application/json") .send() .await? .json() .await?; println!("{:#?}", json); Ok(())}

```

### Parameters[​](https://engineering.toggl.com/docs/api/tasks/#parameters-5)

#### Path[​](https://engineering.toggl.com/docs/api/tasks/#path-5)

| name | type | required | description |
| --- | --- | --- | --- |
| workspace\_id | integer | true | Numeric ID of the workspace |
| project\_id | integer | true | Numeric ID of the project |
| task\_id | integer | true | Numeric ID of the task |

### Response[​](https://engineering.toggl.com/docs/api/tasks/#response-5)

#### 200[​](https://engineering.toggl.com/docs/api/tasks/#200-5)

Successful operation.

#### 400[​](https://engineering.toggl.com/docs/api/tasks/#400-5)

Possible errors:

- Invalid project\_id
- Invalid task\_id

#### 403[​](https://engineering.toggl.com/docs/api/tasks/#403-5)

User does not have access to this resource.

#### 500[​](https://engineering.toggl.com/docs/api/tasks/#500-5)

Internal Server Error
