The etching profiles of n-GaAs electrodes are controlled under laser illumination and anodic polarization. Depending on the incident light power and pH of the solution two etching profiles are obtained: at strong alkali or acid pH the photon flux limits the photodissolution of GaAs. The etching profile is Gaussian, reproducing the photon distribution of the laser. This etching profile is associated with an immediate and constant photocurrent. At intermediate pH, the growth of an oxide layer limits the photodissolution of n-GaAs. Therefore we obtained a flat bottom etching profile related to a decrease of the photocurrent to a steady state.