Final answer:
Gulliver gets rid of the wasps by having warriors strike the hive with their bare hands and endure the stings. This is done to obtain secret strength to defeat a giant beetle.
Step-by-step explanation:
Gulliver gets rid of the wasps by having warriors strike the massive hive with their bare hands. They deliberately receive stings from the wasps until they become semi-conscious from the venomous pain.
This happens in a ceremony where the warriors sing and dance at the foot of a scaffolding. The act of striking the hive and enduring the stings is said to give the warriors secret strength to defeat a giant beetle.