> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Remove Skill File • AI Agent SDK

> remove_skill_file: Remove a file from a skill's directory.

# remove\_skill\_file

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**SkillManager**](../classes/SkillManager) class in the [**manager**](../modules/manager) module.

Remove a file from a skill's directory.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def remove_skill_file(name: str, file_path: str, propose: Optional[bool]) -> dict
```

## Parameters

<ParamField query="name" type="str" required={true}>
  Skill name
</ParamField>

<ParamField query="file_path" type="str" required={true}>
  Relative path within skill to remove
</ParamField>

<ParamField query="propose" type="Optional[bool]" required={false}>
  If True, stage the removal for human approval instead of removing from disk. Defaults to the manager's `write_approval` policy. Pass `propose=False` to remove directly.
</ParamField>

### Returns

<ResponseField name="Returns" type="dict">
  Dict with success status
</ResponseField>

## Uses

* `get_skill`
* `target_file.exists`
* `relative_to`
* `target_file.resolve`
* `resolve`
* `target_file.unlink`

## Used By

* [`SkillManager.remove_file`](../functions/SkillManager-remove_file)

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/skills/manager.py#L1108">
  `praisonaiagents/skills/manager.py` at line 1108
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Skills Concept" icon="wand-magic-sparkles" href="/docs/docs/concepts/skills" />

  <Card title="Skills Feature" icon="star" href="/docs/docs/features/skills" />
</CardGroup>
