Skip to main content

Delete artifact

This endpoint allows you to delete specific artifacts of an application by their identifiers.

Endpoint

POST /artifact/delete

Authentication

HeaderValue
AuthorizationBearer <jwt_token>

Request Body

The request uses multipart/form-data format with the following fields:

FieldTypeRequiredDescription
idstringUnique identifier of the specific version of application
app_namestringName of the application to which the artifact belongs
versionstringCurrent version of the application
artifacts_to_deletearrayArray 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

FieldTypeDescription
deleteSpecificArtifactResultbooleanIndicates 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