---
updatedAt: 2026-07-06T18:48:43.000Z
agentTools:
  siteIndex: https://techdocs.akamai.com/llms.txt
  projectIndex: https://techdocs.akamai.com/edgeworkers/llms.txt
---

# Cancel an activation

```curl cURL
activationId="3"
edgeWorkerId="42"

egcurl --eg-section default --request DELETE \ 

  --url "https://$hostname/edgeworkers/v1/ids/$edgeWorkerId/activations/$activationId" \ 
```

```node Node
const EdgeGrid = require("akamai-edgegrid");
const os = require('os');
const edgercPath = os.homedir + "/.edgerc.txt";
const edgercSection = "default";
const eg = new EdgeGrid({
  path: edgercPath,
  section: edgercSection
});   

const activationId = "3";
const edgeWorkerId = "42";

eg.auth({
  path: `/edgeworkers/v1/ids/${edgeWorkerId}/activations/${activationId}`,
  method: "DELETE"
  qs: {

}                   
});
eg.send(function(error, response, body) {
  console.log(body);    
});
```

```python Python
import requests
from akamai.edgegrid import EdgeGridAuth, EdgeRc
from urllib.parse import urljoin

edgerc = EdgeRc('~/.edgerc.txt')
section = 'default'
baseurl = 'https://%s' % edgerc.get(section, 'host')

session = requests.Session()
session.auth = EdgeGridAuth.from_edgerc(edgerc, section)
activationId = "3"
edgeWorkerId = "42"
 

path = '/edgeworkers/v1/ids/{}/activations/{}'.format(edgeWorkerId, activationId)
 

  

result = session.delete(urljoin(baseurl, path))
print(result.status_code)

if result.json():
    print(result.json()) 
```

```json Response Example
{"success":true}
```

# Set up authentication

<!-- curl@ -->

Before you can use this API, you need to [Create authentication credentials](https://techdocs.akamai.com/developer/docs/set-up-authentication-credentials).

Then, you can use these code samples to apply the token values to your requests.

# Pick an activation

<!-- curl@1 -->
<!-- node@10 -->
<!-- python@11 -->

You also need an `activationId` value, which you can get from the [List activations](https://techdocs.akamai.com/edgeworkers/reference/activations#get-activations-1) operation.

# Pick an EdgeWorker ID

<!-- curl@2 -->
<!-- node@11 -->
<!-- python@12 -->

You first need an `edgeWorkerId` value, which you can get from the [List EdgeWorker IDs](https://techdocs.akamai.com/edgeworkers/reference/get-ids) operation.

# Form the URL

<!-- curl@6 -->
<!-- node@14 -->
<!-- python@15 -->

Inject the `edgeWorkerId` and `activationId` values into the request URL.

# Call the API

<!-- curl@1-6 -->
<!-- node@1-22 -->
<!-- python@1-25 -->

Call DELETE on the request URL.

# Review the response

<!-- curl@0 -->
<!-- node@0 -->
<!-- python@0 -->

The response object confirms the deletion of the EdgeWorker version activation.