API Documentation

Delete Files

DELETE/api/delete-file

Delete files from your account using the DELETE API endpoint /delete-file.

Parameters:

filePath

(string)

Path to the file to delete. Provide either filePath or folder, but not both.

folder

(string)

Folder to delete all files from. Provide either filePath or folder, but not both.

HTTP Response Status Codes
Status codeDescription
200File or folder successfully deleted
400Bad request
404File or folder not found
405Method not allowed
500Internal server error
Delete single file
Delete all files in folder

Delete a specific file from your account.

1import requests
2
3api_key = "***************"
4headers = {'x-api-key': api_key}
5base_url = "https://app.tamarind.bio/api/"
6
7params = {
8    "filePath": "myFile.txt"
9}
10response = requests.delete(base_url + "delete-file", headers=headers, params=params)
11print(response.text)
Response Format
1{
2  "message": "File deleted successfully"
3}