This topic describes how to batch delete multiple credentials by using an API.
Notice
The deletion is irreversible.
API description
If a password is set, you must pass the authentication. For more information, see API hybrid encryption.
Request URL
DELETE /api/v1/security/credentials
Request parameters
Parameter |
Type |
Required |
Example value |
Description |
|---|---|---|---|---|
| credential_id_list | []int | Yes | [1, 2, 3] | The ID of the credential. |
Response
Parameter |
Type |
Description |
|---|---|---|
| successful | bool | Indicates whether the request is successful. |
| timestamp | time.Time | The timestamp when the server completed the request. |
| duration | int | The time taken by the server to process the request, in milliseconds. |
| status | int | The HTTP status code. |
| traceId | string | The trace ID of the request. |
| error | ApiError | The error information returned by the request. The error information contains the following fields:
|
Examples
Request example
DELETE 10.10.10.1:2886/api/v1/security/credentials
{
"credential_id_list": [1, 2, 3]
}
Response example
{
"successful": true,
"timestamp": "2025-10-14T15:17:01.277047628+08:00",
"duration": 25,
"status": 200,
"traceId": "e6f64ba7f54e7a51"
}
