> ## 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.

# Archive Skill • AI Agent SDK

> archive_skill: Archive a skill (recoverable, never hard-deleted).

# archive\_skill

<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.

Archive a skill (recoverable, never hard-deleted).

Moves the skill directory into the archive store and drops it from
the active in-memory index. Use :meth:`restore_skill` to recover it.
Lifecycle curator plugins call this for agent-created skills that have
gone stale.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def archive_skill(name: str) -> dict
```

## Parameters

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

### Returns

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

## Uses

* `get_skill`
* `archive_dir.mkdir`
* `dest.exists`
* `strftime`
* `datetime.now`
* `shutil.move`

## Used By

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

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/skills/manager.py#L914">
  `praisonaiagents/skills/manager.py` at line 914
</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>
