Skip to main content

delete_skill

Method
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

Parameters

str
required
Skill name to delete
bool
default:"False"
If True, permanently remove the directory (unrecoverable)
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

dict
Dict with success status

Uses

  • archive_skill
  • get_skill
  • shutil.rmtree

Used By

Source

View on GitHub

praisonaiagents/skills/manager.py at line 873

Skills Concept

Skills Feature