Delete a Config#
To delete an evaluation configuration, send a DELETE
request to the configs endpoint. You must provide both the namespace and name of the configuration (not the ID) as shown in the following code.
Prerequisites#
Before deleting a config, make sure it is not in use by any jobs. If a job is using the config, you must delete the job first. To find all jobs that use a config, refer to List Evaluation Jobs.
Options#
API#
Submit a DELETE request to
/v1/evaluation/configs/<my-namespace>/<my-config-name>
.curl -X "DELETE" "${EVALUATOR_SERVICE_URL}/v1/evaluation/configs/<my-namespace>/<my-config-name>" \ -H 'accept: application/json'
endpoint = f"{EVALUATOR_SERVICE_URL}/v1/evaluation/configs/<my-namespace>/<my-config-name>" response = requests.delete(endpoint).json() response
Review the response.
Example Response
{ "message": "Resource deleted successfully.", "id": "eval-config-MNOP1234QRST5678", "deleted_at": null }