removeDir
Signature
Section titled “Signature”function removeDir(string calldata path, bool recursive) external;Description
Section titled “Description”Removes a directory at the provided path. This cheatcode will revert in the following situations, but is not limited to just these cases:
pathdoesn’t exist.pathisn’t a directory.- User lacks permissions to modify
path. - The directory is not empty and
recursiveis false.pathis relative to the project root.