Skip to content

Instantly share code, notes, and snippets.

@chrisallenlane
Last active February 13, 2018 15:00
Show Gist options
  • Save chrisallenlane/5aeb15c6e5e415e8fcc834f799ce9eab to your computer and use it in GitHub Desktop.
Save chrisallenlane/5aeb15c6e5e415e8fcc834f799ce9eab to your computer and use it in GitHub Desktop.
User-side script for deleting multiple pages of email in Outlook Web App.
/**
* Paste this in a browser console to automate the processes of clicking
* "Select All" and "Delete" in OWA. Useful for flushing out abandoned inboxes
* (from the user side).
*/
(function () {
document.querySelector('input[type=checkbox]').click();
document.querySelector('a#lnkHdrdelete').click();
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment