If your program is including vbulletin code, then you would probably want to use a datamanager to delete a thread, or call the function delete_thread() that's in includes/functions_databuild.php around line 866. If you're not including vbulletin code then you might want to check out the delete_thread() function anyway to see everything that's done to delete a thread properly.
|