http://www.simplemachines.org/community/index.php?topic=115543.msg755538#msg755538<?php
include_once('SSI.php');
// Find the IDs of the PMs that this moron sent...
$query = db_query("SELECT ID_PM FROM {$db_prefix}instant_messages WHERE ID_MEMBER_FROM='theirmemberid'");
// Delete them...
while($row = mysql_fetch_assoc($query))
{
// Delete the actual PM
$query2a = db_query("DELETE FROM {$db_prefix}instant_messagse WHERE ID_PM = '$row[ID_PM]'", __FILE__, __LINE__);
// Remove all records of this PM from other users' inboxes now...
$query2b = db_query("DELETE FROM {$db_prefix}im_recipients WHERE ID_PM = '$row[ID_PM]'", __FILE__, __LINE__);
}
Get someone who knows what they are doing to stick that code above into a file (eg runthis.php), upload the file to the server and open the page in a webbrowser.
It will delete the PMs from the user.
Remember to fill in THEMEMBERID with the ID of the spammer....