Deleting Non-Maven Files
Function
This API is used to delete non-Maven files.
Calling Method
For details, see Calling APIs.
URI
DELETE /cloudartifact/v5/file
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
path |
Yes |
String |
File path. |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
status |
String |
Definition Request status. Range success: The request is successful. error: The request fails. |
|
trace_id |
String |
Definition Request ID, which uniquely identifies the current request. Range A string of digits and hyphens (-). |
|
result |
Object |
Definition Response of the request. The return value varies according to the API. Range The value range varies according to the API. |
Example Requests
This API is used to delete non-Maven files.
https://artifact.example.myhuaweicloud.com/cloudartifact/v5/file
{
"path" : "xx-xxxxx-x_5a775fdcb14f4431b6c0015618140bc3_go_19/down/down/GOR7zo553IL44I063cdVKui7n58078"
}
Example Responses
Status code: 200
OK
{
"status" : "success",
"trace_id" : "143002-1701223356546-449",
"result" : "delete file success!"
}
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.