Like I said, PITA...
What if you copy it to another company, purge transaction detail AND warehouse detail for all items, then delete the warehouse and manually copy the warehouse masterfile back? Again, I haven't done it and have no idea what kinds of errors THAT may cause but....