Delete a file

/files/{file_id}

This call removes a file from the CGC. Files are specified by their IDs, which you can obtain by making the API call to list files.

https://cgc-api.sbgenomics.com/v2/files/{file_id}

Request

Example request

DELETE /v2/files/565351a1e4b09d884b29334a HTTP/1.1
Host: cgc-api.sbgenomics.com
X-SBG-Auth-Token: 3210a98c1db9318fa9d9273156740f74
curl  -s -H "X-SBG-Auth-Token: 3210a98c1db9318fa9d9273156740f74" -H "content-type: application/json" -X DELETE "https://cgc-api.sbgenomics.com/v2/files/565351a1e4b09d884b29334a"

Header Fields

NameDescription
X-SBG-Auth-Token
required
Your CGC authentication token.

Path parameters

NameDescription
file_idThe ID of the file you want to delete.

Response

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

HTTP/1.1 204 No Content
Date: Tue, 29 Mar 2016 15:47:44 GMT
Connection: close
Language