Ireland I grant you.
Afghanistan was never a colony, it always had its
own rulers. Britain wanted to control it's foreign policy.
South Africa – you are presumably thinking of the Boer wars so between 2 colonial powers and partly caused by the British abolition of slavery. The Union of South Africa was an independent Dominion from 1909. If it had been a British colony I doubt they would have had apartheid. for so long.
Somalia- part occupied by Italy, another colonial power. Britain handed British Somaliland independence in 1960 when the area that had been under Italian control became independent.
Kenya – Legislative Council from 1957 before independence in 1963. Some people call the fighting a civil war. It was certainly a very dirty fight.
Rhodesia – was the self governing colony of South Rhodesia from 1923 after the British South African company's charter was revoked. Fighting was against its own government. They were mostly settlers of British origin but it was not a war against Britain. Zambia became independent in 1963 after elections.
Egypt- technically never a colony. Britain withdrew its influence gradually apart from a misguided attempt to capture the Suez canal..
Iraq -Britain was given a League of Nations mandate to govern in 1920, established a hashemite monarchy and Iraq became independent in 1932.
Palestine -Britain had a mandate from 1918-1948, then withdrew. Palestine and Israel are still fighting it out, not a war with Britain.
India from 1919 British policy was to develop self-governing institutions. India had a Legislative Council until independence. Gandhi went for civil disobedience rather than war.
Ones you prefer not to cover - Canada, Australia, Malta (which once voted to integrate with Britain in a referendum but got independence), Bermuda, Gibralter, Falkland Islands – all choosing to stay British. Anguilla preferred to be a British Overseas Territory rather than part of independent St KittsThe Carribbean Islands – all given independence without a war although Haiti fought France. . Botswana, Ghana, Malta and others.