Prune and remove unnecessary files from all maps