Deleting an Algorithm
Function
This API is used to remove a registered algorithm from ModelArts.
This API applies to the following scenarios: When you need to delete an algorithm that is no longer used, you can use this API to do so. Before using this API, ensure that the algorithm exists and you have the permission to delete it. After the deletion is complete, the algorithm is permanently removed from the platform. If the algorithm ID does not exist or you do not have the operation permission, the API will return an error message.
Debugging
You can debug this API through automatic authentication in API Explorer or use the SDK sample code generated by API Explorer.
URI
DELETE /v2/{project_id}/algorithms/{algorithm_id}
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Definition: Project ID. For details, see Obtaining a Project ID and Name. Constraints: The value can contain 1 to 64 characters. Letters, digits, and hyphens (-) are allowed. Range: N/A Default Value: N/A |
algorithm_id |
Yes |
String |
Definition: Algorithm ID Constraints: N/A Range: N/A Default Value: N/A |
Request Parameters
None
Response Parameters
Status code: 202
No Content
None
Example Requests
The following shows how to modify the algorithm whose UUID is 2e5451fe-913f-4492-821a-2981031382f7.
DELETE https://endpoint/v2/{project_id}/algorithms/2e5451fe-913f-4492-821a-2981031382f7
Example Responses
Status code: 202
No Content
null
Status Codes
Status Code |
Description |
---|---|
202 |
No Content |
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