# “Subscriptions” Endpoints - DELETE Remove existing subscription

**URL:** <https://community.toggl.com/t/subscriptions-endpoints-delete-remove-existing-subscription/407>\
**Category:** Webhooks API\
**Tags:** subscription, api, endpoints, delete, webhooks\
**Created:** [December 2, 2024, 5:52pm UTC](https://community.toggl.com/t/subscriptions-endpoints-delete-remove-existing-subscription/407 "2024-12-02T17:52:48Z")\
**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:52pm UTC](https://community.toggl.com/t/subscriptions-endpoints-delete-remove-existing-subscription/407/1 "2024-12-02T17:52:48Z")

</div>

```auto
https://api.track.toggl.com/webhooks/api/v1/subscriptions/{workspace_id}/{subscription_id}

```

Remove existing subscription given its ID and workspace ID.

- 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(); let json = client.request(Method::DELETE, "https://api.track.toggl.com/webhooks/api/v1/subscriptions/{workspace_id}/{subscription_id}".to_string()) .header(CONTENT_TYPE, "application/json") .send() .await? .json() .await?; println!("{:#?}", json); Ok(())}

```

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

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

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

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

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

| Name | Type | Description |
| --- | --- | --- |
| created\_at | string | - |
| deleted\_at | string | - |
| description | string | - |
| enabled | boolean | - |
| event\_filters | Array of SubscriptionEventFilter | - |
| has\_pending\_events | boolean | - |
| secret | string | - |
| subscription\_id | integer | - |
| updated\_at | string | - |
| url\_callback | string | - |
| user\_id | integer | - |
| validated\_at | string | - |
| workspace\_id | integer | - |

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

User not found/accessible for workspace

#### 404[​](https://engineering.toggl.com/docs/webhooks/subscriptions/#404-1)

subscription {subscription\_id} for workspace {workspace\_id} was not found

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

Internal Server Error
