Reset

Clear Any Sync config and delete lockfile

imink 07ef1a2 673 B Updated

File contents

Reset Any Sync

Clear the Any Sync config and lockfile.

Steps

1. Confirm Reset

Ask the user to confirm they want to reset. Explain that this will:

  • Delete the config file (.any-sync.json)
  • Delete the lockfile (.any-sync.lock)
  • NOT delete any synced files (skills, memory, settings remain on disk)

2. Find Config

Look for config at $HOME/.any-sync.json first, then .any-sync.json in the current directory.

3. Run Reset

npx @any-sync/cli reset "<config-path>" ".any-sync.lock"

4. Report Results

Parse the JSON output and report what was cleared.

imink/any-sync/tree/main/packages/claude-plugin/skills/reset commit 07ef1a2f0a

Frequently asked questions

npx skillmds@latest add imink/reset