MyBB Community Forums

Full Version: Delete PMs through SQL query
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Greetings,

Is there any way to delete pms through SQL query?

Lets say I want to delete all pms sent by user ABC to anyone, is there any way to do it from SQL query?


TY.
DELETE FROM `mybb_privatemessages` WHERE `fromid` = 'X'

I think... then change the X to the uid of the sender.
@MikeRogowski: Thanks Smile This worked for me:
DELETE FROM mybb_privatemessages WHERE fromid='X'