#!/bin/cat
$Id: FAQ.Emptying.txt,v 1.4 2016/04/24 00:07:47 gilles Exp gilles $

This documentation is also at http://imapsync.lamiral.info/#doc

============================================
   Imapsync tip to empty an account.
============================================

=======================================================================
Q. How to delete all emails of all folders of an account with imapsync?

R. Use the same account on both sides with option --delete
   --noexpungeaftereach

Option --noexpungeaftereach is just to speed up the deletion.

Example:

  ./imapsync \
    --host1 test.lamiral.info --user1 test --password1 secret \
    --host2 test.lamiral.info --user2 test --password2 secret \
    --delete --noexpungeaftereach

=======================================================================
Q. How to delete all folders of an account with imapsync?

R. Use an already empty account as source and sync this account
   to the account you want to clear, with --delete2folders 

Example:

  ./imapsync ... --delete2folders --foldersizes

=======================================================================
