Delete evaluator versions
Endpoint: DELETE /v2/evaluators/{evaluator_id}/versions
Deletes a batch of versions belonging to the evaluator identified by the
evaluator_id path parameter. This operation is irreversible.
The delete is partial-tolerant: versions that exist and belong to
evaluator_id are deleted; every requested ID that was not deleted is
reported back in not_deleted_version_ids (for example, because a version
was not found or belongs to a different evaluator). This is not an error —
the response is still 200.
Deleting a version currently pinned to a running online task un-pins that task; it falls back to resolving the evaluator’s latest version.
Payload Requirements
version_idsmust contain between 1 and 100 IDs. Duplicate IDs are accepted and silently collapsed so each version is processed at most once.
Responses
200— request processed. Checkdeleted_version_ids/not_deleted_version_idsfor the outcome of each requested ID.400— malformed request:evaluator_idfails ID-format validation (Invalid evaluator ID format), orversion_idsis missing/empty (version_ids must contain at least one evaluator version ID), not an array (version_ids must be an array), exceeds 100 entries (version_ids cannot contain more than 100 evaluator version IDs), or one entry fails ID-format validation (Invalid evaluator version ID format).401— missing or invalid credentials.403— the evaluator is readable but the caller lacks permission to delete its versions.404—evaluator_iddoes not exist or is not readable by the caller (Evaluator not found).429— rate limit exceeded.
Valid example — evaluator RXZhbHVhdG9yOjEyOkI3cmk= with a single
version RXZhbHVhdG9yVmVyc2lvbjozMjpBQ0Q2:
{
"version_ids": ["RXZhbHVhdG9yVmVyc2lvbjozMjpBQ0Q2"]
}
Response 200:
{
"completed": true,
"deleted_version_ids": ["RXZhbHVhdG9yVmVyc2lvbjozMjpBQ0Q2"],
"not_deleted_version_ids": []
}
Invalid example (empty version_ids)
{
"version_ids": []
}
Response 400:
{
"status": 400,
"title": "Bad Request",
"type": "https://arize.com/docs/ax/rest-reference/errors#invalid-request",
"detail": "version_ids must contain at least one evaluator version ID"
}
Authorizations
Most Arize AI endpoints require authentication. For those endpoints that require authentication, include your API key in the request header using the format
Path Parameters
The unique evaluator identifier (base64) A universally unique identifier (base64-encoded opaque string).
"RW50aXR5OjEyMzQ1"
Body
Body identifying the versions to delete from the evaluator named by the
evaluator_id path parameter.
IDs of the evaluator versions to delete (up to 100 per request). IDs that
do not belong to evaluator_id are reported as not deleted. Duplicate IDs
are accepted and silently collapsed so each version is processed at most once.
1 - 100 elementsResponse
Evaluator versions processed. A successful response includes completed: true
because both result lists are complete. This does not indicate whether every
requested version existed or was deleted. The delete is idempotent.
Result of a DELETE /v2/evaluators/{evaluator_id}/versions request.
The delete is partial-tolerant: requested versions that exist and belong to
evaluator_id are deleted; every requested ID that was not deleted is reported
in not_deleted_version_ids. An ID may be not-deleted because it does not exist
or belongs to a different evaluator.
completed is true when this response is returned because the synchronous
delete has fully processed the request. It does not mean every requested
version was found and deleted: each requested ID appears in exactly one of
deleted_version_ids or not_deleted_version_ids.
The delete operation is idempotent — re-submitting already-deleted IDs is safe and simply reports them as not deleted.
Deleting a version that is currently pinned to a running online task un-pins that task, which then falls back to resolving the evaluator's latest version.
Always true in a successful response, indicating both result lists are
complete. This does not indicate whether all requested versions existed.
Evaluator version IDs confirmed deleted in this request.
Requested evaluator version IDs that were not deleted.