Skip to:
Content
Pages
Categories
Search
Top
Bottom

Is There A Way To Auto Delete Members Older Private Messages?


  • pghjeffrey
    Participant

    @pghjeffrey

    I am looking for a way to auto delete private messages that are older then __ days. Where I can fill the number in. I would like to limit how many saved emails a user can have. I have been looking for plugins and was not able to find anything. Any suggestions would be appreciated.

Viewing 1 replies (of 1 total)

  • danbpfr
    Participant

    @chouf1

    No, you have to create your own plugin or to go into phpmyadmin and do it manually.

    The example below delete all messages of sender ID 11 prior to the given(fake) date. Adjust the table prefix to your own and take care with cotes and backsticks when copy/pasting from here…. May this help ?

    DELETE FROM 'wp_bp_messages_messages'
    WHERE  'sender_id' = '11'
    AND 'date_sent' '> 1962-08-22'
    ORDER BY 'date_sent'

     

Viewing 1 replies (of 1 total)
  • The topic ‘Is There A Way To Auto Delete Members Older Private Messages?’ is closed to new replies.
Skip to toolbar