As far as I'm aware, they did remove their soldiers (the debate around whether it was officially an occupation was based in the fact that some argued that to be an occupation, Israeli soldiers had to be inside Gaza). But yes, they'd didn't do it for peace. As you say, it was about demographic majority.