Is there any way to unload the preview/workspace before rendering?

Hi,
was wondering if there is any way to unload all the models and textures hoggin the viewspace/workspace/preview/whateveritsname before activating the render, to save on memory? I usually put the view in the least demanding linework mode, was wondering if there is a step beyond that and just unload the whole thing.
Comments
The software needs those models and textures to perform the render.
That's all you can do. The Iray preview mode would be switched off for an Iray render anyway.