Remove 3-way Switch

There’s a reason why @Automated_House was telling you to identify other wires as well is because there are many other options for 3 ways wiring so it’s hard to guess without enough info. Have a look at this wiring options
3 Way Switch Wiring Diagram

And here for hooking a smart switch.