removeSkill

View as MarkdownOpen in Claude

Remove a previously added skill by its instance ID.

This is an async method that returns Promise<boolean>.

Parameters

instanceId
stringRequired

The unique instance ID of the skill to remove.

Returns

Promise<boolean>true if the skill was found and removed, false otherwise.

Example

import { AgentBase, MathSkill } from '@signalwire/sdk';
const agent = new AgentBase({ name: 'assistant', route: '/assistant' });
const mathSkill = new MathSkill();
await agent.addSkill(mathSkill);
// Later, remove it by instance ID
const skills = agent.listSkills();
if (skills.length > 0) {
await agent.removeSkill(skills[0].instanceId);
}