Hi, before to remove the folder I make a test in my Imap Account.
I create a folder with the name TESTFOLDER with my Mail Client.
I open the server and in Command Terminal, I login how root and I open /var/spool/imap/user.
I open my user folder, I see the TESTFOLDER, and I remove with rm -r...