DELETE
/
sdk
/
v1
/
tools
/
{id}
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();
{
  "success": true
}

Path Parameters

id
string
required
Example:

"1212121"

Response

200
application/json
Successful deletion of the tool
success
boolean
Example:

true