SET FOREIGN_KEY_CHECKS = 0;

-- Suppression de la table des tarfis
DROP TABLE IF EXISTS `dhl_delivery_price`;

-- Suppression du mail
SET @var := 0;
SELECT @var := `id` FROM `message` WHERE name="mail_dhl";
DELETE FROM `message` WHERE `id`=@var;
DELETE FROM `message_i18n` WHERE `id`=@var;

-- Suppression des zones dédiées DHL
DELETE FROM `country_area` WHERE `area_id` IN (SELECT `id` FROM `area` WHERE name LIKE 'DHL - Delivery Zone%');
DELETE FROM `area_delivery_module` WHERE `area_id` IN (SELECT `id` FROM `area` WHERE name LIKE 'DHL - Delivery Zone%');
DELETE FROM `area` WHERE name LIKE 'DHL - Delivery Zone%';

SET FOREIGN_KEY_CHECKS = 1;
