But... Why would you want to delete a sales order with a paid deposit? I don't believe that process will refund the deposit. I typically recommend they do an invoice for that sales order (remove all Inventory items), change the order to a /Misc Item that is the same dollar amount as the Deposit. Then, do a Credit Memo, applying the CM to the original invoice. That will then give the customer a refund of their credit card payment.