updated register client function to traverse and delete all emails before continuing
updating to delete folder at a time so all emails get deleted