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

1import { AgentBase, MathSkill } from '@signalwire/sdk';
2
3const agent = new AgentBase({ name: 'assistant', route: '/assistant' });
4const mathSkill = new MathSkill();
5await agent.addSkill(mathSkill);
6
7// Later, remove it by instance ID
8const skills = agent.listSkills();
9if (skills.length > 0) {
10 await agent.removeSkill(skills[0].instanceId);
11}