Built In Hooks

rmdir(path)

Remove the given directory and its contents.

rmdir(path)[source]

Remove the given directory and its contents.

Parameters

path (Union[str, Path, PathLike])

Return type

str

Returns

A message in the format 'removing <path>'

Attention

To support Windows-like systems using \ as a path separator you may need to use a raw string for the path as the toxinidir substitution may contain backslashes:

recreate_hook = builtin.rmdir(r"{toxinidir}/doc-source/build")