To add to this the BETTER business practice would be to use the hidden (AKA admin only) comments if the idea here is to not have these comments in the customers order history.. No need to delete them.. If they are admin comments, the customer never sees them..

To answer Webmart's question, it is NOT a simple piece of code to add a comments delete function, and there are no plans to add such functionality to Edit Orders. However IF this ability were there it would be limited to the admin comments only because as ScriptJunkie has pointed out deleting comments that the customer can see is in their order history is a bad practice.
Quote Originally Posted by ScriptJunkie View Post
That would be a really bad business practice IMO, because it changes your audit trail. It's much better to simply change the status from "stock waiting" back to pending with a comment as to why the status changed (i.e. product back in stock, order being fulfilled).

Using the example you provided....(stock waiting)...let's say you DO delete that when the stock is refilled. Then you fulfill the order. Then you ship the order. Customer files a complaint saying he never got the item because it never came back in to stock and so he wants a refund.

Had you deleted that history item when the stock was refilled, rather than updating with new status and comment...you, the business owner and one responsible for upholding your agreement to deliver the product, have no proof via audit trail that you did indeed re-stock and ship the item. You don't even have proof that the item was ever out of stock and that this is why the order fulfillment was delayed, but then ultimately shipped once stock was refilled.

See what I mean? IMO, this is a bad, bad, very bad business practice.