'Pass a musicbrainz id to this function (either ArtistID or AlbumID)'

def remove_from_cache(self, ArtistID=None, AlbumID=None):

    if ArtistID:
        self.id = ArtistID
        self.id_type = 'artist'
    else:
        self.id = AlbumID
        self.id_type = 'album'
    self.query_type = 'artwork'
    if self._exists('artwork'):
        for artwork_file in self.artwork_files:
            try:
                os.remove(artwork_file)
            except:
                logger.warn('Error    deleting    file    from    the    cache:    %s', artwork_file)
    self.query_type = 'thumb'
    if self._exists('thumb'):
        for thumb_file in self.thumb_files:
            try:
                os.remove(thumb_file)
            except Exception:
                logger.warn('Error    deleting    file    from    the    cache:    %s', thumb_file)
