Np, when restarting the desktop or laptop is deleting only the RAM (temporary or cached memory) completely. But not the ROM memory stored in storage devices like Hard drives and SSD types.