Hi,
I am just about to update a J1.0 with CB 1.1
I want to cleanup before I upgrade.
There are many inactive users that we want to remove including all their images and galleries.
I just tested to delete a user but the images remain in /images/comprofiler/ and images/comprofiler/plug_profilegallery/
Is there a script or something I could use?
We've no such script. Plugins now do all their clean up on user delete, but back then several didn't. In the /images/comprofiler/plug_profilegallery folder though it should be organized by user id. So you should be able to just delete every folder associated with the user ids of the users you're deleting. For avatars in /images/comprofiler the files should all be prefixed with the user id and an underscore so you should be able to search for and delete their avatars there as well. All of this properly cleans up now, but unfortunately just wasn't the case that long ago.
Kyle (Krileon) Community Builder Team Member Before posting on forums:
Read FAQ thoroughly
+
Read our Documentation
+
Search the forums CB links:
Documentation
-
Localization
-
CB Quickstart
-
CB Paid Subscriptions
-
Add-Ons
-
Forge
-- If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
-- If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please
send me a private message
with your thread and will reply when possible!
-- Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
-- My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
Thanks for your reply.
The users are still there, there are just really many inactive ones.
I will upgrade then first and then delete them in the new version, then the images should be deleted.
I just thought I could save time on migrating less stuff.