hooks.delete_files_and_folders
¶
- hooks.delete_files_and_folders(paths: Union[pathlib.Path, str, List[pathlib.Path], List[str]]) None ¶
Delete files and folders for given file and/or folder paths.
- Parameters
paths – A
pathlib.Path
object or string, or list ofpathlib.Path
orstrings. –
- Returns
None - deletes the files and/or folders defined in
paths
if they exist. If this function raises an error, the files and/or folders have not been removed.