if (($poll_moduleHandler instanceof XoopsModuleHandler) && $poll_moduleHandler->isactive()) {
                            $pollHandler = xoops_getModuleHandler('poll', 'xoopspoll');
                            if (false !== $pollHandler->deleteAll(new Criteria('poll_id', $poll_id, '='))) {
                                $optionHandler = xoops_getModuleHandler('option', 'xoopspoll');
                                $optionHandler->deleteAll(new Criteria('poll_id', $poll_id, '='));