Delete Skill • AI Agent SDK
delete_skill: Remove a skill.
delete_skill
Method
</div>
This is a method of the SkillManager class in the manager module.
Remove a skill.
By default this is a recoverable archive: the skill directory is moved aside into the archive store and can be restored later. This keeps the self-improvement loop safe — a skill is never lost. Pass `hard=True` to permanently delete the directory (legacy behaviour).
Signature
def delete_skill(name: str, hard: bool, propose: Optional[bool]) -> dictParameters
ParamField
strSkill name to delete
ParamField
boolIf True, permanently remove the directory (unrecoverable)
ParamField
Optional[bool]If True, stage the deletion for human approval instead of removing from disk. Defaults to the manager’s `write_approval policy. Pass propose=False` to delete directly.
Returns
ResponseField
dictDict with success status
Uses
archive_skillget_skillshutil.rmtree
Used By
Source
View on GitHubpraisonaiagents/skills/manager.py at line 873