// use specific recycling structure (factory or repair station)
orderDroidObj(myDroid, DORDER_RECYCLE, recycleStructure);
// use any recycling point (WZ 3.2+ only)
orderDroid(myDroid, DORDER_RECYCLE);
Notes
At the start of a game, before repair facilities are available, recycling badly damaged droids is a good tactic:
You receive 50% of the droids cost back when it gets recycled.
The droid's experience is retained and passed on to the next applicable droid you build
Land droids can be recycled at any factory or repair facility. VTOLs should only be recycled at VTOL factories.
If you're looking to recycle a building, use DORDER_DEMOLISH instead.