@staticmethod
def del_key_with_comments(dic, key, logger=None):
    """Delete section with comments."""
    if key not in dic:
        return
    if logger:
        logger.debug('Removing key: %s', key)
    del dic[key]
    dic.ca.items.pop(key, None)
