You can undeploy all configurations at the datastore, organization, or resource pool level if you are a global administrator. Go to resources, one of the tabs for the resources types I listed, mouse of the name of the resource and select Undeploy.
The drawback to doing it this way is that all the configurations actually do an "undeploy - save state" and will write all memory to the hard drive so you'll need to make sure you have enough free space for that.
Otherwise you could do it via the API's by getting all configs and doing an undeploy - discard state.
Eric