diff --git a/doc/ApiDocGeneration/Generate-Api-Docs.ps1 b/doc/ApiDocGeneration/Generate-Api-Docs.ps1 index be6bd0cb083c6..57f4823b4b0ca 100644 --- a/doc/ApiDocGeneration/Generate-Api-Docs.ps1 +++ b/doc/ApiDocGeneration/Generate-Api-Docs.ps1 @@ -140,7 +140,7 @@ if ($LibType -eq 'client') { } Write-Verbose "Remove all unneeded artifacts from build output directory" -Remove-Item –Path "${ApiDir}/*" -Include * -Exclude "${ArtifactName}.dll", "${ArtifactName}.xml" +Remove-Item –Path "${ApiDir}/*" -Include * -Exclude "${ArtifactName}.dll", "${ArtifactName}.xml" -Recurse -Force Write-Verbose "Initialize Frameworks File" & "${MDocTool}" fx-bootstrap "${FrameworkDir}"