partially running is bad actually. If you "stop" a vapp, it should go to powered off.
partially running is an intermediate state where it has a vSE or VM still considered running.
Make sure you stop the entire vApp before issuing a delete command.
There is also a dedicated API forum, which you might get more specific help from.