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 prompt = await client.prompts.delete('1212121'); console.log(prompt.success);}main();
Copy
{ "success": true}
API Reference
Delete Prompt
Delete a prompt configuration by ID. This will remove the prompt from the system and all associated data including evaluations.
DELETE
/
sdk
/
v1
/
prompts
/
{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 prompt = await client.prompts.delete('1212121'); console.log(prompt.success);}main();