uninstall files in chunks of 500.
This is intended to address #2122.
Merge pull request #2263 from rolandwalker/faster_uninstall

uninstall files in chunks of 500.