I was just about to add your code but saw that the command for "delete" was "clear" and the addon already had a "clear" button I just never used it. I used it and is functioned just as would I expect the delete button to. So it had a "delete" after all, thanks for the reply though.