All you would need to do is notify your current attorney that you would like to terminate services, ask for a detailed final bill, and have your retainer balance returned.
If you cannot afford an attorney, you have the right to have one appointed to you in a felony, Class A misdemeanor, Class B misdemeanor, juvenile, or direct appeal case. See Tex. Code Crim. Pro.
As advisor, a lawyer provides a client with an informed understanding of the client's legal rights and obligations and explains their practical implications. As advocate, a lawyer zealously asserts the client's position under the rules of the adversary system.
What is my New York Bar number? Many states have Bar numbers; New York does not.