I would like to modify this component
www.joomlaos.de/Downloads/Joomla_und_Mambo_Komponenten/Unregister.html to work with CB. It is a Unregister Component, so that people can delete theirselfes from the database. Actually it works with CB already, but it leaves a lot of junk data in your database and on your ftp (user avatar picture and files from the profile gallery).
I did some research already and figured out that some simple additions to the unregister.php of that component can fix the problem with junk leftovers in the database. The needed additions affect:
#__comprofiler (the user itself, "user_id")
#__comprofiler_members (the connections of the user, "referenceid")
#__comprofiler_members (the connections to the user, "memberid")
#__comprofiler_plug_profilegallery (the profilegallery entries, "userid")
#__comprofiler_userreports (user complaints, "reporteduser")
#__comprofiler_userreports (complaints about user, "reportedbyuser")
#__comprofiler_views (viewer_id)
My problem is, that I do not know how to handle the deletion of the user files on the ftp. Any suggestions are welcome!