To fully flush the transmission you need to think about the torque converter that holds alot of the oil, which, if you only drain the pan, doesn't get that oil.
"Around 1/2 of your trans oil is in the converter.
A 4l60e needs about 5.5 litres on a pan only service, but, after a rebuild it takes about 10 litres, so 4.5 litres of old oil is left in the converter to mix with your new oil, so at best, it is a 50/50 mix of new and old oil when doing a pan only change.
There is a few ways to do it, some recommended, some not.
Recommended ways.
What I do. #paycashnow
1. Pay a trans joint to flush all the oil, they can connect up lines to the in and out lines to fully flush the trans, including the converter, typically they drain the pan and replace the filter, then refill the pan prior to connecting the lines to flush.
DYI way. Costly with the price of trans fluid
1. Drain pan, put in new filter, refill and run the car
2. Drain pan again and run the car
3. Drain the pan and refill
Whilst not truly "flushed" it does freshen up most of the oil in the whole transmission.
Not recommended way
Disclaimer, I'm not a transmission specialist, but, I know people who have done it this way without and "apparent" damage to the transmission