Im seeing in my wp-content/uploads/avatars folder that there are tons of avatars from when I created test users, but changed the avatars. So, iâm assuming that even if the user changes their avatar, the old file remains? That seems like a build up of unnecessary img files. Is there a way to discard the unused avatars, and only keep the users current full and thumb width image? Other than manually deleting them. It would be very troublesome trying to decipher which is being used in an live environment
Ive googled doing a cron job, but I’m not too familiar with the way it works. Any ideas?
What version of BP are you using?
Changing your avatar should result in the uploaded file being deleted after the creation of the thumb and full versions. And those versions should over-write the old versions.
Avatars don’t have a db entry, so what file names are you seeing in an avatar folder?
You should only see one set of …-bpthumb and …-bpfull files.
If you’re seeing all the source files, perhaps there is a permissions issue re deletion?
Any warnings in your error log?