How to disable delete once the thread has been started in advanced forum module in drupal 7?
You're looking for hook_node_access() where $op == 'delete'.

http://api.drupal.org/api/drupal/modules%21node%21node.api.php/function/hook_node_access/7