I am trying to remove and delete the files from a project during the install PowerShell of a NuGet package. I have the code below that removes it from the project, but I cannot figure out how to pipe that so I can also delete it from disk. How do I do this?
$project.ProjectItems.Item("Test123").Remove() | Select-Object | Get-ChildItem -Recurse | Remove-Item -force -recurse
Removemethod return?