Valmiki Ramayana Sundara Kanda Sarga 46 Shloka 36
Original Shlokaततस्तेष्ववसन्नेषु सेनापतिषु पञ्चसु।।5.46.36।। बलं तदवशेषं च नाशयामास वानरः।
1 source checked for this shloka
ततः then, तेषु those, पञ्चसु all the five, सेनापतिषु army chiefs, अवसन्नेषु when they died, वानरः vanara, तत् that, अवशेषम् remaining, बलम् army, नाशयामास destroyed.
When the five army chiefs were killed, Hanuman began to destoy the remaining army force.