When you use Remove-Item in PowerShell, you get this warning:
The item at Microsoft.PowerShell.Core\FileSystem::PATH has children and the Recurse parameter was not specified. If you continue, all children will be removed with the item. Are you sure you want to continue?
This is because you need to specify the -Recurse parameter after the Remove-Item command.