Remove affiliate when member leave room

How can I remove affiliate as member when I leave the room as a member?
I have tried using MultiUserChat.leave(); but I still able to find myself in the MultiUserChat.getMembers() using another account. How can I deal with this?