Last active
February 13, 2018 15:00
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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