They are unlikely to let you off section if you express a desire to stop meds.
If you are in the UK the best way to get off section is to agree you are ill and take the drugs they give you.
Pretend to them they are helping you even if you feel you are not and play the part of the patient ,pretend the drugs are making you better,Then say you feel like your old well self again and ask when you can come go home.
You can ask about coming of the meds when you are home and have been discharged from CMHT.
Aletrantively get yourself a mental health solicitor who can set up a tribunal for you to appeal your section.But that has to be done withing 14 days of the date you were first sectioned on this admission.So I don't know how long you have been in there if you are already too late.
Good luck,I hope you get off it,is it a section 3?
Tell them that you have been dreadfully unwell, but that you needed to behave the ways that you did to deal with what you were experiencing. Say how much they have helped you, how much better you feel, & that you are enjoying it in hospital. Agree with them about the diagnosis & treatment. Practise non-reaction/calm under any circumstances, don't act out in any way. If you maintain that position they're drop you like a hot potato.
When free of the hospital/services then you can look at trying to withdraw from medication & look for alternative help/support - Unfortunately this is where the problems often come in - depending on the degree/severity of the underlying difficulties.
I told the MH professionals and the lead psychologist that I didn't want to leave hospital as I felt safe and cared for. The lead psychologist rescinded my section 2 to a voluntary admittance and one week later I was discharged from the hospital.