When using an online exchange server to manage emails for your custom domain, you will recieve lots of errors such as sync issues. These sync issues are under 4 categories, sync issues, conflicts, local failiures, and server failiures. Sync Issues and conflicts are just duplicates of emails that were unable to be syncronized with the server. Local Failiures are generally emails with attachments >35mb but <50 mb because old outlook emails were able to attach 50mbs of data but it is limited to 35 mb now. So when a large attachment tries to synchronize it will get rejected. This script clears the folders called Sync issues, conflicts, and local failiures. It will permanently delete the emails so they are unrecoverable from recently deleted. This greatly increases the speed of the outlook in cached exchange mode, and it also loweres the size of the .ost file.