Cleaning a hot glue gun requires a careful approach. It would be best to use an aluminum foil ball to clean a hot glue gun.
It is because aluminum foil works as a good scrubber for a hot glue gun. Use the ball to scrape the nozzle.