Unlink a file from a collection (does NOT delete the uploaded file).
Python
import requests url = "https://www.datalab.to/api/v1/collections/{collection_id}/files/{uploaded_file_id}" headers = {"X-API-Key": "<api-key>"} response = requests.delete(url, headers=headers) print(response.text)
{ "detail": [ { "loc": [ "<string>" ], "msg": "<string>", "type": "<string>" } ] }
Successful Response
Was this page helpful?