def _clean_sample(sample, fields=None):
    """
    Clean a sample resource from unnecessary fields

    :param sample: the sample to clean
    :type sample: dict
    :return: Sample cleaned from unnecessary params
    :rtype: dict
    """

    if fields is None:
        fields = ['_links', 'releaseDate', 'updateDate', 'taxId']

    for f in fields:
        if f in sample:
            del sample[f]

    return sample