Base URL: <https://app.nanonets.com>

Delete File

Endpoint

DELETE /api/v2/Inferences/Model/{model_id}/InferenceRequestFiles/{file_id}

Description

This endpoint allows you to delete a file within a specified model.

Request Parameters

  • model_id (string, required): The unique identifier of the model that the file belongs to.
  • file_id (string, required): The unique identifier of the file you want to export. You can locate this ID on the extract data page associated with the model.

Sample Request:

curl:

curl --location --request DELETE
'https://app.nanonets.com/api/v2/Inferences/Model/{model_id}/InferenceRequestFiles/{file_id}' \
--header 'Content-Type: application/json' \
--header 'Authorization: {API_KEY}' \

Python:

import requests

url =
"https://app.nanonets.com/api/v2/Inferences/Model/{model_id}/InferenceRequestFiles/{file_id}"

api_key = 'API_KEY'

response = requests.delete(url, auth=(api_key, ''), headers={"Content-Type": "application/json"})

print(response.text)