erase captures in $/.prune