Gravitational binding energy of Earth is about 10^32 joules, so you'd need to pump that much in to dismantle Earth. The entire solar output reaching Earth is about 10^17 Watts, so it would take 10^8 years to dismantle Earth without leaving it if you could capture every Joules as it entered the atmosphere
On the other hand if you could capture the Sun's entire output - not just that arriving at Earth - you'd have enough energy to do it in a week or two.
Yes, there's all sorts of odd things that would happen with rotational energy too, hence you don't need as much as if you calculated it based on lifting 1kg at a time from the earth's surface. You'd need about 10^32 joules. If you didn't account for that you'd need about twice as much energy, which is about 10^32 joules.
In theory you could simply vaporize the earth with antimatter, converting it to energy, rather than trying to disasemble it. That would produce far more energy than the gravitational binding energy, so unless you happen to have a planet sized lump of antimatter around you'd have to generate it with more than 10^32 joules.
On the other hand if you could capture the Sun's entire output - not just that arriving at Earth - you'd have enough energy to do it in a week or two.