Printing barcode to Zebra printer

I realize this is old.
I am able to to use that code to print the label.

However it prints the last label printed as well as what I sent out on the same label.
any idea how to get clear the buffer