Delete Evaluation Job#

To delete an evaluation job, send a DELETE request to the jobs endpoint. You must provide the ID of the job as shown in the following code.

v2 (Preview)#

Warning

v2 API Preview: The v2 API is available for testing and feedback but is not yet recommended for production use. Breaking changes may occur before the stable release.

import os
from nemo_microservices import NeMoMicroservices

# Initialize the client
client = NeMoMicroservices(
    base_url=os.environ['EVALUATOR_BASE_URL']
)

# Delete an evaluation job (v2 API)
client.v2.evaluation.jobs.delete("job-id")
print("Job deleted successfully")
curl -X "DELETE" "${EVALUATOR_BASE_URL}/v2/evaluation/jobs/<job-id>" \
  -H 'accept: application/json'

v1 (Current)#

Choose one of the following options to delete an evaluation job.

import os
from nemo_microservices import NeMoMicroservices

# Initialize the client
client = NeMoMicroservices(
    base_url=os.environ['EVALUATOR_BASE_URL']
)

# Delete an evaluation job (v1 API)
client.evaluation.jobs.delete("job-id")
print("Job deleted successfully")
curl -X "DELETE" "${EVALUATOR_BASE_URL}/v1/evaluation/jobs/<job-id>" \
  -H 'accept: application/json'