# remove()

Canonical URL: https://developers.iagenify.com/sdk/ref/agents/skills/remove/
Language: en

`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.

Status: the account only · item_on_computer · names the path

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

## A computer skill cannot be removed from here {#on-disk}

> **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.

```javascript
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
  }
}
```

## Removing the account's copy reveals the disk's {#shadowed}

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 {#errors}

| Code | Status | When |
| --- | --- | --- |
| item_on_computer | 409 | It exists only on this computer. |
| not_found | 404 | In neither source. |

- [save()](/sdk/ref/agents/skills/save): Putting one back.
- [Account vs computer](/sdk/agent/skills-and-subagents/account-vs-computer): The two sources.

```python
api.agents.skills.remove("release-notes")   # {"ok": True}
```

```python
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
```
