In Galaxy on Fire 2, you don't sell your ship outright. Instead, you simply buy a new one.
When you purchase a new ship, the value of your current ship is automatically deducted from the cost. It's a smooth trade-in system that makes upgrading feel seamless.