Deleting a File or Folder Permanently
Function
Delete a file or folder permanently.
Calling Method
For details, see Calling APIs.
URI
DELETE /devreposerver/v5/files/compeletion
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
Token authentication information. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
[items] |
No |
Array of strings |
IDs of the files to be deleted. |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
status |
String |
Definition: Request status. Value range: success: The request is successful. error: The request fails. |
trace_id |
String |
Definition: Request ID, which uniquely identifies the current request. Value range: A string of digits and hyphens (-). |
result |
Object |
Definition: The API response varies depending on the request. Value range: The value range varies according to the API. |
Example Requests
https://localhost.com/devreposerver/v5/files/compeletion [ "666666af0f00445f85dec483fbc97c78", "6666666efdf244a3abcd53e5b19e86f4", "666666547a54464397b73c7ee1efd124" ]
Example Responses
Status code: 200
OK
{ "status" : "success", "trace_id" : "76629-1718766450894-27029", "result" : { "reason" : [ ], "failed_items" : [ ], "success" : 3, "success_items" : [ "666666af0f00445f85dec483fbc97c78", "6666666efdf244a3abcd53e5b19e86f4", "666666547a54464397b73c7ee1efd124" ], "failed" : 0 } }
Status Codes
Status Code |
Description |
---|---|
200 |
OK |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot