NewWacht Bench is live — AI-assisted development for Wacht

deleteAgentSkill()

This method manages agent skill bundles or files.

Usage

The following example shows a basic usage of the backend client from @wacht/nextjs/server.

import { wachtClient } from '@wacht/nextjs/server';export async function example() {  const client = await wachtClient();  const agentId: string = 'agentid-123';  const skillSlug: string = 'skillslug';  return client.ai.deleteAgentSkill(agentId, skillSlug);}

Signature

function deleteAgentSkill(  agentId: string,  skillSlug: string,  client?: WachtClient,): Promise<void>

Parameters

agentId: string;
Target agent id.
skillSlug: string;
Slug identifier for the target resource.

Examples

AI usage pattern

import { wachtClient } from '@wacht/nextjs/server';export async function inspectSkills(agentId: string) {  const client = await wachtClient();  const tree = await client.ai.listAgentSkillTree(agentId, 'agent');  const file = await client.ai.readAgentSkillFile(agentId, 'agent', '/README.md');  return { tree, file };}

On this page