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
| /** | |
| * Google Apps Script to delete old files and optionally empty folders in Google Drive. | |
| * | |
| * Settings: | |
| * - cutOffDays: Number of days before the current date to consider for file deletion. | |
| * - deleteEmptyFolders: Set to true to delete empty directories, false to keep them. | |
| * | |
| * Instructions: | |
| * 1. Ensure "Drive" advanced service is enabled: | |
| * - In the Google Apps Script dashboard, click "+ Services" in the sidebar. |