# “Approvals” Endpoints - DELETE Delete a timesheet setup

**URL:** <https://community.toggl.com/t/approvals-endpoints-delete-delete-a-timesheet-setup/391>\
**Category:** API References\
**Tags:** timesheets, approvals, api, endpoints, delete\
**Created:** [December 2, 2024, 5:38pm UTC](https://community.toggl.com/t/approvals-endpoints-delete-delete-a-timesheet-setup/391 "2024-12-02T17:38:39Z")\
**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:38pm UTC](https://community.toggl.com/t/approvals-endpoints-delete-delete-a-timesheet-setup/391/1 "2024-12-02T17:38:39Z")

</div>

```auto
https://api.track.toggl.com/api/v9/workspaces/{workspace_id}/timesheet_setups/{setup_id}

```

Delete a timesheet setup for a 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}/timesheet_setups/{setup_id}".to_string()) .header(CONTENT_TYPE, "application/json") .send() .await? .json() .await?; println!("{:#?}", json); Ok(())}

```

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

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

| name | type | required | description |
| --- | --- | --- | --- |
| workspace\_id | integer | true | Numeric ID of the workspace |
| setup\_id | integer | false | Numeric ID of the timesheet setup |

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

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

Successful operation.

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

Possible error messages:

- Workspace not found
- Invalid setup ID
- Failed to delete timesheet setup, member has approved, rejected or submitted timesheets

#### 402[​](https://engineering.toggl.com/docs/api/approvals/#402-3)

Approvals are a premium feature

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

User does not have access to this resource

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

Internal Server Error
