Or delete them all at once:

```ruby
FileUtils.remove(caches[0, num_to_delete], force: true)
```