-- settings DELETE FROM `top`, `toc`, `to` USING `sys_options_types` AS `top` LEFT JOIN `sys_options_categories` AS `toc` ON `top`.`id`=`toc`.`type_id` LEFT JOIN `sys_options` AS `to` ON `toc`.`id`=`to`.`category_id` WHERE `top`.`name` = 'bx_datafox'; -- alerts SET @iHandler := (SELECT `id` FROM `sys_alerts_handlers` WHERE `name` = 'bx_datafox' LIMIT 1); DELETE FROM `sys_alerts` WHERE `handler_id` = @iHandler; DELETE FROM `sys_alerts_handlers` WHERE `id` = @iHandler; -- injections DELETE FROM `sys_injections` WHERE `name` = 'bx_datafox';