Home

Removing Maildir folders client-side using mbsync

Written on 2022-03-26

  1. Have Remove Both in your config
  2. Remove all mail in the folder (mbsync does not delete non-empty folders to prevent accidents, which is good)
  3. Sync with the server (mbsync myaccount)
  4. Remove the cur directory in the folder
  5. Sync again
If .mbsyncstate is gone, it means that the folder is not tracked anymore, you can delete the rest and it's not going to come back.