Prerequisites
Steps to reproduce
- Use
Remove-Item on any folder with substantial number of test files that you can delete.
- Cmdlet will report incorrect number of removed items in the progress bar.
It's either off-by-one on the total item count or on the currently removed item 🤷♂️

Expected behavior
Correct number of removed items should be reported in the progress bar
Actual behavior
Removed 4 of 3 files [...]
Removed 11 of 10 files [...]
Error details
Environment data
Name Value
---- -----
PSVersion 7.5.0-preview.3
PSEdition Core
GitCommitId 7.5.0-preview.3-21-gbfa3dbe20db2758aa2abbbdd26166cf803893076
OS Microsoft Windows 10.0.22631
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0, 5.0, 5.1, 6.0, 7.0}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Visuals

Prerequisites
Steps to reproduce
Remove-Itemon any folder with substantial number of test files that you can delete.It's either off-by-one on the total item count or on the currently removed item 🤷♂️
Expected behavior
Correct number of removed items should be reported in the progress barActual behavior
Error details
No errorEnvironment data
Visuals