socio4health.Extractor.s4h_delete_download_folder#
- Extractor.s4h_delete_download_folder(folder_path: str | None = None) bool[source]#
Safely delete the download folder and all its contents.
- Parameters:
folder_path – Optional path to delete (defaults to the download_dir used in extraction)
- Returns:
Trueif deletion was successful,Falseotherwise- Return type:
- Raises:
ValueError – If no folder path is provided and no download_dir exists
OSError – If folder deletion fails