prune files using the proper interface, rather than modifying the arrayr...

...ef directly