Even with UAV's, it's not just a flight-vs-ground distinction either. For example, any drone that's being used for reconnaissance is going to keep a big imagery database on board, simply because there's not enough satellite bandwidth to stream lots of data back to the ground while it's on the air. That server could be running Unix or Windows or whatever, and probably is, because the UAV designers will have gone to a lot of trouble to make sure it can't interfere with any flight critical software.
And by deleting a repository I mean firing a Hellfire missile.
If an attacker compromises the ground station software, on the other hand, he gets to try to snoop on whatever intelligence information comes down from the network that computer is on. Things like lists of likely targets for the operator to watch for, or anticipated positions of friendly units in the area, and so on. You get the idea.
The amount of oversight a avionics system must go through when writing code for it is unfathomable for a modern software engineer. I know it sounds "cool" to hack into an avionics system from the in flight entertainment, but the likelihood of that being possible is somewhere around zero if the plane got approved by the FAA to be in the air.