v1

latestOpenAPI 3.1.02026-07-24239123562.1 KB
Files

Delete a File

This endpoint does soft delete. Soft delete means that file will remain in datalake but will be marked as deleted. This means that file will not appear in file search and Athena search

delete/v1/datalake/delete

Query parameters

fileIdstring required

ID of the file to delete.

Headers

ts-auth-tokenstring required

JWT Token

x-org-slugstring required

Your organization slug

Response

200

statusstring

Example response

{
  "status": "deleted",
  "entity": {
    "fileId": "1013c6fe-05fa-4565-97a7-aed3cf9327cb",
    "filename": "example.xlsx",
    "orgSlug": "tetrascience",
    "category": "raw",
    "sourceType": "egnyte",
    "source": {
      "type": "egnyte",
      "egnyte": {
        "integrationId": "65e63947-81ea-49f3-971b-907051ae7fb3",
        "filePath": "/Private/username/example.xlsx",
        "fileName": "example.xlsx",
        "groupId": "ed2ed265-7f4a-4d02-b687-2b03eda1ce59",
        "entryId": "fdea5a6f-d209-4d27-91f3-218ef7175a3a",
        "checksum": "63e208ef49ef363bc532a4ce334ff3ca92ad0a3200a61698f9e678132ac2f89d4c7f44b09969ef60d4d53aeb22121658d727d6df745ce2fcc382a9220a496500",
        "versionId": "fdea5a6f-d209-4d27-91f3-218ef7175a3a",
        "lastModifiedTime": "2018-01-08T23:24:04.000Z",
        "versionNum": 1
      }
    }
  }
}