If you use a detergent to flush the system out, it will take at least 3 times of draining it out and refilling with clean water to remove all the detergent from the cooling system.
You really need to get it all out as if you dont, because its detergent, it bubbles inside the cooling system. Bubbles do not work well in the cooling system lol.
After draing the flush out, refill the system with clean water and run the engine for 2 mins with the rad cap off. Drain and repaet as many times as it takes until you dont see bubbles forming at the neck of the rad. Keep flushing any bubbles away from the neck when the engine is running to check if they are all gone.
After filling the system with water and antifreeze as described above, after the cars first good run check the levels when the engine cools down again, as sometimes pockets of air take a run to get them dislodged.
Takes time but can save you a headgasket change!!!