//class; try { $node = $nodeClass::load( $id ); } catch ( \OutOfRangeException $e ) { throw new \IPS\Api\Exception( 'INVALID_ID', '2F363/7', 404 ); } /* isUsedByCms in cms/hooks/Forum.php */ if ( $db = $node->isUsedByCms() ) { throw new \IPS\Api\Exception( 'FORUM_USED_BY_DATABASE', '2F363/6', 403 ); } else { return parent::_delete( $id, $deleteChildrenOrMove ); } } }