Thanks, but I already solved it.
For the people who are interested in it:
PHP Code:
<?php
error_reporting(E_ALL & ~E_NOTICE);
require_once('./global.php');
require_once('/includes/adminfunctions_profilefield.php');
require_once('/includes/adminfunctions_user.php');
$ids = array(1234,1235);
foreach($ids as $id)
{
$info = fetch_userinfo($id);
if (!$info)
{
echo $id.'fail<br />';
}
else
{
$userdm =& datamanager_init('User', $vbulletin, ERRTYPE_CP);
$userdm->set_existing($info);
$userdm->delete();
unset($userdm);
echo $id.'okay<br />';
}
unset($info);
}
?>
This deletes the member and all information connected to it. The posts and threads are still there, but those are simple to delete by two sql statements.