Deleting a file
Files may be deleted either by path, or by UUID:
By path
DELETE https://<service_host>/file/v2/orgs/<org_id>/workspaces/<workspace_id>/files/path/<file_path>
By UUID
DELETE https://<service_host>/file/v2/orgs/<org_id>/workspaces/<workspace_id>/files/<file_id>
For example, you may delete a file by its ID as follows:
import requests
file_id = "13771ee0-c399-4b52-8ccb-ed3a114dcc0d"
url = f"https://<service_host>/file/v2/orgs/{org_uuid}/workspaces/{workspace_uuid}/files/{file_id}"
result = requests.delete(url, headers={ "Authorization": "Bearer [yourtokenhere]" })
A successful delete operation will return a 204 No Content header.