Skills library

remove()

api.agents.skills.remove(name) → Promise<{ ok: true }>

Removes a skill from the account. One that exists only on a disk is refused — with its path, rather than a shrug.

the account onlyitem_on_computernames the path
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

await api.agents.skills.remove("release-notes");   // { ok: true }
api.agents.skills.remove("release-notes")   # {"ok": True}

A computer skill cannot be removed from here

item_on_computer, with the folder named

The API has no way to touch that file, and answering « removed » while it kept working would be worse than refusing. The refusal says where it is so it can be deleted there.

import { IaGenifyError } from "iagenify";

try {
  await api.agents.skills.remove("scratch");
} catch (err) {
  if (err instanceof IaGenifyError && err.code === "item_on_computer") {
    console.log(err.message);   // names ~/.iagenify/skills
  }
}
from iagenify import IaGenifyError

try:
    api.agents.skills.remove("scratch")
except IaGenifyError as error:
    if error.code != "item_on_computer":
        raise
    print(error)   # names ~/.iagenify/skills

Removing the account's copy reveals the disk's

If both existed, deleting the account's one brings the computer's back into the list. That is the shadowing working in reverse, and it is worth knowing before concluding a deletion did not take.

Errors

CodeStatusWhen
item_on_computer409It exists only on this computer.
not_found404In neither source.