clean_drive_folders_by_name: Clean Contents or Entire Google Drive Folders by Name

View source: R/utils.R

clean_drive_folders_by_nameR Documentation

Clean Contents or Entire Google Drive Folders by Name

Description

Searches for all Google Drive folders with the specified name and optionally removes their contents and/or the folders themselves. Useful for cleaning up scratch or export folders used by Earth Engine batch processes.

Usage

clean_drive_folders_by_name(
  folder_name,
  delete_folders = FALSE,
  verbose = TRUE
)

Arguments

folder_name

[mandatory] (character) Name of the folder(s) to search for in Google Drive.

delete_folders

[optional] (logical) If TRUE, the matched folders themselves will be deleted after their contents are removed. Default is FALSE.

verbose

[optional] (logical) If TRUE, messages will be printed about cleanup actions. Default is TRUE.


geeLite documentation built on Aug. 9, 2025, 1:08 a.m.