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 tool = await client.tools.delete('1212121'); console.log(tool.success);}main();
Copy
{ "success": true}
API Reference
Delete tool
Delete a tool by ID.
DELETE
/
sdk
/
v1
/
tools
/
{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 tool = await client.tools.delete('1212121'); console.log(tool.success);}main();