The delete-file command removes both the file and folders from the Block Storage.

JSON Input Data Format
{
    "id": string,
    "name": string,
    "path": string,
    "cloudid": string
    "items": [
        { "name": string },
        ...
    ]
}
id * Specifies the ID of the Block Storage.
name * Specifies the name of the Block Storage.
path * Specifies the path to the directory containing the file and folder items.
cloudid * Specifies the cloud ID hosting the Block Storage.
items * This field can be either an array or a string. It specifies the array containing lists of file and folder names that will be deleted. Each item must be provided in JSON data format as follows: { "name": "FileorFolderName" }. Alternatively, you can specify a single filename string, such as "myfile.txt".
* Indicates a mandatory field.

Code Snippets
Here are several code snippets provided for your direct use. Simply select your preferred tool/language by clicking on it.


Successful Response
{
    "result": "OK",
    "payload": "The process was successfully completed"
}

Failed Response
{
    "result": "ERR",
    "message": "Error message ..."
}