Not a very good idea...LOL yeah that's the way they do here often. I removed all my substrate a month or so back a cup at a time with fish in the tank. Of course I have a very robust bio-bed in my canister filter to ensure no ammo spike but I had no problems at all.
There can be a large spike in water parameters (ammonia) that can kill your fish.