1---2name: 038-agent-c5ff808f3description: Agent's Memory Cleanup4---5# Agent's Memory Cleanup67Agent memory can be cleared using a request that requires an admin JWT token for authentication. This functionality allows for granular control:89- **Clear all agent memory**: Reset the entire memory state of the agent.10- **Clear thread memory**: Clear memory specifically associated with a particular thread within the agent.1112> The `thread_id` parameter is used to specify the target thread for memory clearing.1314```bash15curl --location '{base_url}/agents/clean-memory' \16--header 'Content-Type: application/json' \17--header 'Authorization: Bearer {jwt_token}' \18--data '{19 "agent_id": "local",20 "thread_id": "chat1",21 "clean_agent_memory": true,22 "clean_skills_memory": true23}'24```
Run npx skillmds@latest add tools-only/038-agent-c5ff808f in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Agent's Memory Cleanup It is listed under AI & ML on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
tools-only (@tools-only) published this skill. Their other Agent Skills are listed on their SkillMD profile.