Delete a task

This call deletes the specified task. The task is referred to by its ID, which you can obtain by making the call to list all tasks you can access.

Request

https://api.sbgenomics.com/v2/tasks/{task_id}
https://eu-api.sbgenomics.com/v2/tasks/{task_id}

👍

Deleting tasks

Note that you can only delete draft tasks, not running tasks.

Example request

DELETE /v2/tasks/e3d4bab1-b649-4e33-b75b-2fe2ada721ca HTTP/1.1
Host: api.sbgenomics.com
X-SBG-Auth-Token: 3259c50e1ac5426ea8f1273259740f74
curl  -s -H "X-SBG-Auth-Token: 6282d5e2121d43e7900e9d52b15845e7" -H "content-type: application/json" -X DELETE "https://api.sbgenomics.com/v2/tasks/e3d4bab1-b649-4e33-b75b-2fe2ada721ca"
from sevenbridges import Api

api = Api(url='https://api.sbgenomics.com/v2',
          token='3259c50e1ac5426ea8f1273259740f74')

task = api.tasks.get(id='e3d4bab1-b649-4e33-b75b-2fe2ada721ca')

# send DELETE request to SB API
task.delete()

Header Fields

Name

Description

X-SBG-Auth-Token
required

Your Seven Bridges Platform authentication token.

Path parameters

Name

Description

task_id
required

The ID of the task you are deleting. See the section on specifying tasks for details.

Response

See a list of Seven Bridges Platform-specific response codes that may be contained in the body of the response.