Remove File • AI Agent SDK

remove_file: Remove a file from a skill directory.

remove_file

Method

</div>

This is a method of the SkillMutatorProtocol class in the protocols module.

Remove a file from a skill directory.

Signature

python
def remove_file(name: str, file_path: str, propose: bool) -> str

Parameters

ParamField str

Skill name

ParamField str

Relative path within skill directory

ParamField bool

If True, stage for approval; if False, remove directly

Returns

ResponseField str

Status message describing the action taken

Source

View on GitHub

praisonaiagents/skills/protocols.py at line 147