When monitoring all the things, sometimes an alert can clog up your inbox. In those cases, deleting hundreds of thousands of emails within the web interface becomes tedious.
This google apps script is meant to be executed to delete large amounts of email via a search query while staying under the various resource limits that gmail imposes.