If they are really only switches, routers and firewalls, then you can just unplug them. Sometimes the chassis could house servers or something like that. But if that would be the case, you would probably know that.
As a precaution I would log into all devices and save the config.