Delete all user attachments

In buddypress when a user wants to delete their own account –> is possible to delete all their attachments entries and images uploaded using media?

Note:
Images are not attached to posts, because im not letting users create normal posts, they only can upload images using media.

Read More

Thanks in advance.

Related posts

Leave a Reply

1 comment

  1. As media uploads are simly files with no related data stored, you can’t do that unless you extend the user data and save the file names, etc. as user meta data. Simple answer: No, it doesn’t work.