I’m under the impression that if you were to remove the gravel and decor, transferring them right into a bucket of tank water, they will hold the bacteria you want to keep. Naturally the longer you 'store' them in the bucket the more likely it would be that they die off. But still, like Ferris said, I'd still use this as an opportunity to thoroughly clean everything before I set the aquarium up for my own fish. Chances are if the person is looking to get rid of a full set up they lost interest and have neglected maintenance as of lately. I'd suggest starting from the beginning... clean it all out... and cycle it over....