一键导入
delete-session
Deletes a specific session from the sync repository. Requires double confirmation before deletion.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Deletes a specific session from the sync repository. Requires double confirmation before deletion.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Removes synced session data from the local staging directory with double confirmation. All cleaned sessions are tombstoned to prevent re-sync.
Lists all synced AI CLI sessions. Pulls latest from remote first, then displays.
Prune old synced sessions that exceed a retention period.
Restores a previous AI CLI session — either hot-loads into current context or prepares for /resume.
Shows the current status of Synctx — sync directory, audit log, prerequisites, and CLI paths.
Full bidirectional sync — pulls from remote, stages local sessions, scans for secrets, and pushes.
基于 SOC 职业分类
| name | delete-session |
| description | Deletes a specific session from the sync repository. Requires double confirmation before deletion. |
To delete a session:
First list available sessions so the user can identify which one to delete:
node ./scripts/sync-engine.js list
Or check tagged sessions:
node ./scripts/sync-engine.js tags
Ask the user which session they want to delete. They can provide the full UUID, a partial ID, a tag name, or "current" for the most recent active session.
Run the delete command — it will prompt for double confirmation automatically:
node ./scripts/sync-engine.js delete <session-id-or-tag>
To target a specific CLI:
node ./scripts/sync-engine.js delete <session-id-or-tag> --cli copilot
node ./scripts/sync-engine.js delete <session-id-or-tag> --cli claude
The user must type "yes" twice to confirm. Do NOT bypass this.
The deletion is committed and pushed to the remote sync repository.
The deleted session is tombstoned — it will not be re-synced from other machines. Any tags pointing to the session are automatically released.
Important: Always show the user what will be deleted (CLI, session name, size, tags) before proceeding.