deleting pending orders when one is executed

 
Guys please, so urgent I need a code that delete pending orders when an order is executed