Partially close à pending order

 
Hey dear, I have been looking for something to reduce the lot of an pending order.

Let's say I put the a 10 lot buy limit. 
Later on I want to reduced it to a 5 lot buy limit, before it got open. 

It's there a function to do so? 
 
Delete the order and place a new one.
 
Vladislav Boyko #:
Delete the order and place a new one.
Thanks