From customgpt-ai-rag
Permanently delete a CustomGPT.ai agent and all its indexed content, then remove the local .customgpt-meta.json binding. Irreversible — requires confirmation.
How this skill is triggered — by the user, by Claude, or both
Slash command
/customgpt-ai-rag:delete-agentThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Permanently delete a CustomGPT.ai agent, all its indexed documents, conversations, and settings. Then remove the local `.customgpt-meta.json` binding.
Permanently delete a CustomGPT.ai agent, all its indexed documents, conversations, and settings. Then remove the local .customgpt-meta.json binding.
.customgpt-meta.json unless the API deletion succeedsFollow the lookup procedure in skills/_shared/api-key.md. Store the result as $API_KEY.
Walk up from $PWD toward /, looking for .customgpt-meta.json. Extract agent_id, agent_name, and indexed_folder. Store the full path as $META_FILE_PATH.
If not found:
"No agent found in this directory tree. Nothing to delete."
Clearly describe what will be deleted:
"Warning: This action is permanent and cannot be undone.
You are about to delete:
- Agent: '{agent_name}' (ID: {agent_id})
- All indexed documents and knowledge base content
- All conversation history
- Local meta file:
{META_FILE_PATH}Type 'delete {agent_name}' to confirm, or anything else to cancel."
If the user does not type the exact confirmation phrase, stop:
"Cancelled. Agent '{agent_name}' was not deleted."
curl -s --request DELETE \
--url "https://app.customgpt.ai/api/v1/projects/${AGENT_ID}" \
--header "Authorization: Bearer ${API_KEY}" \
--header "accept: application/json"
Read the response:
skills/_shared/api-key.md); stopOnly execute this after confirmed API success:
rm "${META_FILE_PATH}"
"Agent '{agent_name}' (ID: {agent_id}) has been permanently deleted." "Local meta file
{META_FILE_PATH}removed.""Run
/create-agentto create a new agent for this folder."
npx claudepluginhub adorosario/customgpt-skill-plugin --plugin customgpt-ai-ragManages aweek agent lifecycles: resume paused agents, top-up budgets, pause/stop active agents, delete/archive with user confirmations. Use for post-hire agent operations.
Coordinates two-specialist workflow to safely retire a team agent: Satchmo removes plugin/code references, Johnny tears down ClawNet bot infrastructure.
Edit, update, remove, or list custom agents stored as Markdown files. Shows current config, prompts for changes, and supports multilingual triggers in EN/IT/FR/ES/DE/PT.