Delete artifact
This endpoint allows you to delete specific artifacts of an application by their identifiers.
Endpoint
POST /artifact/delete
Authentication
| Header | Value |
|---|---|
Authorization | Bearer <jwt_token> |
Request Body
The request uses multipart/form-data format with the following fields:
| Field | Type | Required | Description |
|---|---|---|---|
id | string | ✅ | Unique identifier of the specific version of application |
app_name | string | ✅ | Name of the application to which the artifact belongs |
version | string | ✅ | Current version of the application |
artifacts_to_delete | array | ✅ | Array of identifiers of the artifacts to be deleted (e.g., ["0", "1"]) |
Example Request
curl --location 'http://localhost:9000/apps/update' \
--header 'Authorization: Bearer <jwt_token>' \
--form 'data="{\"id\":\"653a5e4f51ce5114611f5abb\", \"app_name\":\"secondapp\", \"version\":\"0.0.1\", \"artifacts_to_delete\":[\"0\"]}"'
Response
Success Response (200 OK)
{
"deleteSpecificArtifactResult": true
}
Response Fields
| Field | Type | Description |
|---|---|---|
deleteSpecificArtifactResult | boolean | Indicates whether the artifacts were successfully deleted |
Notes
- Artifact identifiers are typically numeric strings representing the position/index of the artifact
- You can delete multiple artifacts in a single request by including multiple identifiers in the array
- This operation is irreversible - deleted artifacts cannot be recovered