Skip to:
Content
Pages
Categories
Search
Top
Bottom

Deleting Private Messages

  • Avatar of rosie_pb
    rosie_pb
    Participant

    @rosie_pb

    Hi there,

    My client’s BuddyPress website received a spam attack last night. The culprit posted a private message to every single member asking them to contact them via email. I blocked the spammer and their IP address and even deleted their user account where I was asked if I wanted to delete all posts which I accepted, but annoyingly even though they were removed from the system their private messages have remained in all the members’ messages inbox.

    I have read lots of forum posts to find way of deleting members private messages, but I can’t find the answer. I don’t necessarily want to read the private message I would just like to bulk delete messages containing the phrase ‘dear one’ or the spam email address.

    An admin delete private message button next to every member’s private message would be extremely helpful. I can’t see why this isn’t already built into BuddyPress to help get rid of spam.

    Does anyone have a solution to this problem or can it be added to the next update? I would be extremely grateful!

    Thanks

Viewing 1 replies (of 1 total)
  • Avatar of adamt19
    adamt19
    Participant

    @adamt19

    If you can run SQL:

    replace ‘XXXX’ with the offenders user ID, deletes all messages from that user:
    DELETE FROM wp_bp_messages_messages WHERE sender_id=’XXXX’;

    assumes wp_ is your table prefix (default)

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.