socio4health.Extractor.delete_download_folder#
- Extractor.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:
True
if deletion was successful,False
otherwise- Return type:
- Raises:
ValueError – If no folder path is provided and no download_dir exists
OSError – If folder deletion fails