Removing the battery will not remove the data on your system's SSD. In fact so long as you don't remove the CMOS battery from the motherboard, the time will also be kept on the board even after you remove the battery powering your system.
It's best you format the drive if you want to sell it or parse it off to the factory.