API ReferenceValidation Scripts
Delete Validation Script
Remove a validation script and its stored results
DELETE
/api/v1/extraction-schema/{extractionSchemaId}/validation-scripts/{key}Deletes the script record and, by cascade, every validation result it has produced. The response reports how many results went with it.
To stop a script from running while keeping its history, use Update with enabled: false instead.
Requires the EDIT_MODELS permission (OWNER or DEVELOPER).
Parameters
| Name | Type | In | Required | Description |
|---|---|---|---|---|
extractionSchemaId | string | path | Yes | The model or deployment's extraction schema ID, returned when listing a project's deployments. |
key | string | path | Yes | The script key |
Request
const res = await fetch(
"https://app.limai.io/api/v1/extraction-schema/esch_abc123/validation-scripts/vin-checksum",
{
method: "DELETE",
headers: {
Authorization: "Bearer YOUR_API_TOKEN",
},
}
);Response
Response200
{
"deleted": true,
"key": "vin-checksum",
"deletedResults": 128
}