def delete_metadata(receipt, price=None, retailer=None, note=None):
    """Delete XMP metadata."""
    if not price and not retailer and not note:
        del receipt.price
        del receipt.retailer
        del receipt.note
    if price:
        del receipt.price
    if retailer:
        del receipt.retailer
    if note:
        del receipt.note
