/**
  * Remove given VAT charging rule.
  */
 static function removeVatRule($id)
 {
     $db = eZDB::instance();
     $db->begin();
     // Remove product categories associated with the rule.
     eZVatRule::removeProductCategories($id);
     // Remove the rule itself.
     eZPersistentObject::removeObject(eZVatRule::definition(), array("id" => $id));
     $db->commit();
 }