io.edgehog.devicemanager.storage.DeleteFile v0.1
Delete a file stored on a device.
Requests the deletion of a file stored on the device. The file must be one published through the io.edgehog.devicemanager.storage.File interface.
About
This interface is of type datastream and is owned by the server, meaning that it is the server which initiates the data flow. Thanks to this type of interface, the server can send a mutable, ordered stream of data, with no concept of persistent state or synchronization.
Data gets sent with an object aggregation. Astarte expects the owner to send all of the interface's mappings at the same time, packed in a single message.
Mappings
The interface has the following mappings:
/request/idwithstringtype. Id of the delete request/request/fileIdwithstringtype. ID of the file to delete/request/forcewithbooleantype. Force the deletion of the file.
/request/id
Id of the delete request
Id of a request on which we will be used to send the io.edgehog.devicemanager.storage.Response.
This endpoint accepts values of type string: an UTF-8 string, at most 65536 bytes long.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Data is considered delivered when the transport successfully sends the data regardless of the outcome. Data is discarded if the transport is temporarily uncapable of delivering it.
/request/fileId
ID of the file to delete
Id of a file on the device published through the io.edgehog.devicemanager.storage.File interface.
This endpoint accepts values of type string: an UTF-8 string, at most 65536 bytes long.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Data is considered delivered when the transport successfully sends the data regardless of the outcome. Data is discarded if the transport is temporarily uncapable of delivering it.
/request/force
Force the deletion of the file.
Force the deletion of the file even if it's currently in use, this could cause errors. Default to false.
This endpoint accepts values of type boolean: either true or false, adhering to JSON boolean type.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Data is considered delivered when the transport successfully sends the data regardless of the outcome. Data is discarded if the transport is temporarily uncapable of delivering it.