minutes icon indicating copy to clipboard operation
minutes copied to clipboard

delete --with-audio only removes merged .wav, leaves stems and embeddings file

Open athal7 opened this issue 7 months ago • 2 comments

When running minutes delete --with-audio <slug>, only the merged .wav is removed. The following files are left behind:

  • <slug>.voice.wav
  • <slug>.system.wav
  • .<slug>.embeddings

Looking at cmd_delete in crates/cli/src/main.rs, the audio path is resolved as md_path.with_extension("wav") — a single file. There's no handling for the stems or the embeddings file.

For dual-source recordings, the stems can be substantial in size (same duration as the merged wav, roughly). The embeddings file is small but also never pruned automatically.

Expected: --with-audio deletes all audio artifacts associated with the meeting — merged wav, stems, and embeddings.

Suggested fix: after removing the merged wav, additionally remove <slug>.voice.wav, <slug>.system.wav, and .<slug>.embeddings if present (i.e. rm -f semantics — no error if absent, since not all recordings produce all stems).

athal7 avatar Apr 22 '26 17:04 athal7

Fixed on main in commit 094e2e8.

This updates minutes delete --with-audio to treat the full meeting artifact set together instead of only .wav:

  • .wav
  • .voice.wav
  • .system.wav
  • ..embeddings

Both archive mode and --force now remove or archive those artifacts when present, and I added targeted tests for the delete path.

CI for 094e2e8 is mostly green already; I’m leaving this open until the remaining Windows desktop installer job finishes, then I’ll close it if that passes cleanly.

silverstein avatar Apr 22 '26 18:04 silverstein

Follow-up clarification:

Verified again on 2026-04-22 against current main:

  • cargo test -p minutes-cli cmd_delete -- --nocapture

That targeted test still passes, and the delete path handles the full artifact set for --with-audio in both archive and --force modes:

  • slug.wav
  • slug.voice.wav
  • slug.system.wav
  • .slug.embeddings

silverstein avatar Apr 22 '26 22:04 silverstein