The delete-file command is used to delete a file in the code space of a function.

JSON Input Data Format
{
    "id": string,
    "filename": string
}
id * Specifies the ID of the Serverless.
filename * Specifies the path and file name of the file that will be deleted.
* 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 ..."
}