Deleting Files


The device can send a request to the HTTP broker to delete a file uploaded by the device on the IoT Hub.

  • Method: POST

  • TOPIC: /multipart/sys/{productKey}/{deviceKey}/file/delete

Request Sample

{
    "sesssionId": "341a9fa5-2719-4322-a7e1-686555b9e678",
    "fileUrl": "enos-connect://xxxxx"
}

Return Sample

{
    "code": 200,
    "message": "success",
    "data": {}
}

Request Parameter Description

Parameter

Data Type

Mandatory/optional

Description

sessionId

String

Mandatory

The session ID, obtained when the devices is authenticated and connected to EnOS, must be provided every time the data is reported.

fileUrl

String

Mandatory

The URL for the file to be deleted.