Leaving Mezuzahs when moving

Assuming the buyer is Jewish , what the Rav usually advised was to offer the buyer the opportunity to buy them from you at the price that you request, and if they buyer doesn’t want to purchase them you are free to remove them.