I’m not sure I’m 100% following what you’re asking?
Do you mean when they wish to leave your discourse forum, and the options to delete/anonymise their account?
Or have you got categories set up that are only accessible to certain groups? (that users can then join and leave)