Delete a folder

This call deletes a folder. Only an empty folder can be deleted.

Request

https://api.sbgenomics.com/v2/files/{folder_id}
https://eu-api.sbgenomics.com/v2/files/{folder_id}

Example request

DELETE /v2/files/6033b0385eca1a23e8d1ccc9 HTTP/1.1
Host: api.sbgenomics.com
X-SBG-Auth-Token: 3259c50e1ac5426ea8f1273259740f74
Content-Type: application/json
curl -X DELETE -H "X-SBG-Auth-Token: c2e05946fb9a494ab5c19c72a94cb4ac" -H "Content-Type: application/json" "http://api.sbgenomics.com/v2/files/6033b0385eca1a23e8d1ccc9"
from sevenbridges import Api

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

folder = api.files.get(id='6033b0385eca1a23e8d1ccc9')

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

Header Fields

Name

Description

X-SBG-Auth-Token
required

Your Seven Bridges Platform authentication token.

Content-Type
required

application/json

Response

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