If you are intent on playing baseball after high school, you simply cannot quit your high school team.
The most you can do is find a way to change schools. But not playing at all is a terrible red flag that you will not overcome in your recruiting efforts.