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/skillsRemoving 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
| Code | Status | When |
|---|---|---|
| item_on_computer | 409 | It exists only on this computer. |
| not_found | 404 | In neither source. |