Single delete_from statement

Can i write a single delete_from statement instead of below two statements

delete_from unitOfMeasureConversion where unitOfMeasureConversion.FromUnitOfMeasure == unitOfMeasure::findBySymbol(“FP”).RecId

&& unitOfMeasureConversion.Product == ecoResProduct.RecId;

delete_from unitOfMeasureConversion where unitOfMeasureConversion.ToUnitOfMeasure == unitOfMeasure::findBySymbol(“FP”).RecId

&& unitOfMeasureConversion.Product == ecoResProduct.RecId;

Sure, why not?

UnitOfMeasureConversion uomConv;
UnitOfMeasure uom = UnitOfMeasure::findBySymbol("FP").RecId;
    
delete_from uomConv
    where uomConv.Product == ecoResProduct.RecId
        && (uomConv.FromUnitOfMeasure == uom || uomConv.ToUnitOfMeasure == uom);

Thank you. That was pretty simple