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
| // ---------------------------- | |
| // --- GLOBAL CONFIGURATION --- | |
| // ---------------------------- | |
| // Define the list of Gmail folders (labels) to be cleaned. | |
| // To specify a custom label that is nested under another, use a forward slash '/'. | |
| const FOLDERS_TO_CLEAN = ["Trash", "Spam", "My Custom Label"]; // <--- CONFIGURE YOUR FOLDERS HERE | |
| // Define a list of email addresses from which to delete messages. | |
| // If this list is empty, the script will delete messages from ALL senders | |
| // found within the FOLDERS_TO_CLEAN. |