Deletes a training record. A training record that is in progress cannot be deleted.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
opensearch:WriteFunction |
delete |
*FunctionTask
|
None | None |
Request syntax
DELETE /v4/openapi/app-groups/{appGroupIdentity}/functions/{functionName}/instances/{instanceName}/tasks/{generation} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| appGroupIdentity |
string |
Yes |
The name of the application. |
my_app_group_name |
| functionName |
string |
Yes |
The name of the feature. |
ctr |
| instanceName |
string |
Yes |
The name of the instance. |
ctr_test |
| generation |
string |
Yes |
The number of iterations. |
1 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The schema of the response. |
||
| Status |
string |
The status of the request. |
OK |
| HttpCode |
integer |
The HTTP status code. |
200 |
| RequestId |
string |
The ID of the request. |
"1081EB05-473C-5BF4-95BE-6D7CAD5E2213" |
| Message |
string |
The error message. |
operation success |
| Code |
string |
The error code. If no error occurs, this parameter is left empty. |
Task.UnableDelete |
| Latency |
integer |
The time consumed for the request, in milliseconds. |
123 |
Sample success responses
{
"status": "OK",
"requestId": "",
"httpCode": 200,
"code": "",
"message": "",
"latency": 123,
"result": {}
}
Examples
Success response
JSON format
{
"Status": "OK",
"HttpCode": 200,
"RequestId": "\"1081EB05-473C-5BF4-95BE-6D7CAD5E2213\"",
"Message": "operation success",
"Code": "Task.UnableDelete",
"Latency": 123
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.