import PromptFoundry from '@prompt-foundry/typescript-sdk';const client = new PromptFoundry({ apiKey: process.env['PROMPT_FOUNDRY_API_KEY'], // This is the default and can be omitted});async function main() { const evaluation = await client.evaluations.delete('1212121'); console.log(evaluation.success);}main();
Copy
{ "success": true}
API Reference
Delete Evaluation
Delete an evaluation by ID.
DELETE
/
sdk
/
v1
/
evaluations
/
{id}
JavaScript
Copy
import PromptFoundry from '@prompt-foundry/typescript-sdk';const client = new PromptFoundry({ apiKey: process.env['PROMPT_FOUNDRY_API_KEY'], // This is the default and can be omitted});async function main() { const evaluation = await client.evaluations.delete('1212121'); console.log(evaluation.success);}main();