This project is read-only.

Delete a non-selectable folder

Topics: Help requests
May 11, 2015 at 5:16 PM
I have a legacy app that stores messages in IMAP with a unique folder structure. Each instance of the app logs in as one particular IMAP user, then each actual user of the app has his own subfolder containing his messages.
INBOX/userA/Inbox contains userA's Inbox
INBOX/userA/Sent contains userA's sent items
INBOX/userB/Inbox contains userB's Inbox
etc, you get the idea.

There's a bunch of empty folders from users who have never actually used the messaging feature, and I'm trying to clean them up. I can delete the bottom level folders just fine (i.e.)
will correctly delete the Inbox folder, but
will throw an error saying that folder is non-selectable and therefore can't be deleted (even after Inbox, Sent etc have all been removed).

Is there anything I can do to delete the non-selectable folder once it's empty?
May 11, 2015 at 9:04 PM
ALright, I think it's a non-issue. Deleting all the child folders causes the imap server to automatically delete their parent folder, so I don't need to try and delete those explicitly.