What kind of insane country has laws that prohibit giving something away?
If the museum became a private business and gave up its tax-exempt charitable status it could dispose of its possessions however it chose. As long as it wants public money and tax breaks the trustees have to abide by the rules.
In California, Museums only need to keep items for a certain period of time, (I think 18 months) then they can dispose of it however they please.