I second this suggestion, though I might also add that maybe merchants should only clear out some items.

- non-magical weapons and armor
- clutter items like cups and plates
- standard potions

Things like unique magical items and special things like infernal iron should be held onto so that players can buy them back later if they realized they really need it.