

# List and delete evaluations

 `ListEvaluations` returns the evaluations of an Agent Context, newest first. It returns at most 100 evaluations in each page, and a page can be empty while `nextToken` is still present. Keep calling it until `nextToken` is absent.

 `DeleteEvaluation` deletes an evaluation’s record and its evaluation set. You can delete an evaluation only after it ends. Until then, `DeleteEvaluation` returns a `ConflictException`. Call `GetEvaluation` until `endedAt` is present, and then delete it.

Deleting an evaluation doesn’t delete its sessions in CloudWatch Logs, its batch evaluation in Amazon Bedrock AgentCore, or the scores in the results log group. To remove those yourself, first record `retrievalTraceLocation`, `evaluationResultLocation`, and `batchEvaluation.batchEvaluationId`. To delete the batch evaluation, the caller needs `bedrock-agentcore:DeleteBatchEvaluation`. After the delete, `GetEvaluation` returns `ResourceNotFoundException`.