DELETE FROM `llx_extrafields` WHERE name = 'rental_product' and elementtype = 'product';
DELETE FROM `llx_extrafields` WHERE name = 'rental_price' and elementtype = 'product';
DELETE FROM `llx_extrafields` WHERE name = 'rental_warranty_base' and elementtype = 'product';
DELETE FROM `llx_extrafields` WHERE name = 'rental_infos' and elementtype = 'product';
DELETE FROM `llx_extrafields` WHERE name = 'rental_label' and elementtype = 'product';
DELETE FROM `llx_extrafields` WHERE name = 'rental_costprice' and elementtype = 'product';
DELETE FROM `llx_extrafields` WHERE name = 'rental_accountancy_code' and elementtype = 'product';
DELETE FROM `llx_extrafields` WHERE name = 'rental_accountancy_code_immo' and elementtype = 'product';

DELETE FROM `llx_extrafields` WHERE name = 'rental_doc' and elementtype = 'propal';
DELETE FROM `llx_extrafields` WHERE name = 'rental_project' and elementtype = 'propal';
DELETE FROM `llx_extrafields` WHERE name = 'rental_start' and elementtype = 'propal';
DELETE FROM `llx_extrafields` WHERE name = 'rental_end' and elementtype = 'propal';
DELETE FROM `llx_extrafields` WHERE name = 'rental_place' and elementtype = 'propal';
DELETE FROM `llx_extrafields` WHERE name = 'rental_duration' and elementtype = 'propal';

DELETE FROM `llx_extrafields` WHERE name = 'rental_line' and elementtype = 'propaldet';
DELETE FROM `llx_extrafields` WHERE name = 'rental_day_cost' and elementtype = 'propaldet';
DELETE FROM `llx_extrafields` WHERE name = 'rental_price' and elementtype = 'propaldet';
DELETE FROM `llx_extrafields` WHERE name = 'rental_warranty_price' and elementtype = 'propaldet';
DELETE FROM `llx_extrafields` WHERE name = 'rental_duration' and elementtype = 'propaldet';

DELETE FROM `llx_extrafields` WHERE name = 'rental_doc' and elementtype = 'commande';
DELETE FROM `llx_extrafields` WHERE name = 'rental_project' and elementtype = 'commande';
DELETE FROM `llx_extrafields` WHERE name = 'rental_start' and elementtype = 'commande';
DELETE FROM `llx_extrafields` WHERE name = 'rental_end' and elementtype = 'commande';
DELETE FROM `llx_extrafields` WHERE name = 'rental_place' and elementtype = 'commande';
DELETE FROM `llx_extrafields` WHERE name = 'rental_duration' and elementtype = 'commande';

DELETE FROM `llx_extrafields` WHERE name = 'rental_line' and elementtype = 'commandedet';
DELETE FROM `llx_extrafields` WHERE name = 'rental_price' and elementtype = 'commandedet';
DELETE FROM `llx_extrafields` WHERE name = 'rental_day_cost' and elementtype = 'commandedet';
DELETE FROM `llx_extrafields` WHERE name = 'rental_warranty_price' and elementtype = 'commandedet';
DELETE FROM `llx_extrafields` WHERE name = 'rental_duration' and elementtype = 'commandedet';

DELETE FROM `llx_extrafields` WHERE name = 'rental_doc' and elementtype = 'facture';
DELETE FROM `llx_extrafields` WHERE name = 'rental_project' and elementtype = 'facture';
DELETE FROM `llx_extrafields` WHERE name = 'rental_start' and elementtype = 'facture';
DELETE FROM `llx_extrafields` WHERE name = 'rental_end' and elementtype = 'facture';
DELETE FROM `llx_extrafields` WHERE name = 'rental_place' and elementtype = 'facture';
DELETE FROM `llx_extrafields` WHERE name = 'rental_duration' and elementtype = 'facture';

DELETE FROM `llx_extrafields` WHERE name = 'rental_line' and elementtype = 'facturedet';
DELETE FROM `llx_extrafields` WHERE name = 'rental_price' and elementtype = 'facturedet';
DELETE FROM `llx_extrafields` WHERE name = 'rental_day_cost' and elementtype = 'facturedet';
DELETE FROM `llx_extrafields` WHERE name = 'rental_warranty_price' and elementtype = 'facturedet';
DELETE FROM `llx_extrafields` WHERE name = 'rental_duration' and elementtype = 'facturedet';
