Vietnam required several decades of determined resistance to Franco/Japanese/American domination, and included the saturation bombing of half of the country.
They managed to make the war expensive and embarrassing enough for the invaders to eventually give up and leave, but the people suffered immensely as a result. They are still recovering from that today.
It is also worth keeping in mind that the US military has spent the last two decades engaged in live testing of counterinsurgency techniques. They’re still no better at actually pacifying a country, but they’ve gotten very good at kicking in doors and disappearing people.
An asymmetrical insurgency can hold a country in a state of dysfunction, but it can very rarely actually defeat a major military power. Peasant uprisings nearly always lose.
Fortunately, violence is not the only way to do it.