Updated the remove data method to only use the barcode.