sync_delete
Delete a file from the primary vault. Optional CAS via base_sha to detect concurrent multi-PC writes. Protected paths (global/memory/, global/skills/, global/planning/, global/claude-config/, handoffs/) require base_sha or explicit force:true (audited). Idempotent: deleting a non-existent path returns success with deleted:false.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Relative file path to delete (e.g., 'global/_waf_probe.md'). No leading slash, no '..'. | |
| force | No | Optional: when true, skip CAS check even if base_sha is supplied. Use only for intentional overwrites; presence is auditable via warning logs. | |
| base_sha | No | Optional: git_sha the client last observed for this path. When present, server compares with current git_sha and returns -32009 conflict on mismatch (with current content for 3-way diff). | |
| device_id | No | Optional: client device identifier for audit log (e.g., from ~/.claude/ainote-sync/device.id). |