> ## 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 File • AI Agent SDK

> remove_file: Remove a file from a skill directory.

# remove\_file

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

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

Remove a file from a skill directory.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def remove_file(name: str, file_path: str, propose: bool) -> str
```

## Parameters

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

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

<ParamField query="propose" type="bool" required={false} default="True">
  If True, stage for approval; if False, remove directly
</ParamField>

### Returns

<ResponseField name="Returns" type="str">
  Status message describing the action taken
</ResponseField>

## Source

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