def remove_segments_chunks(self, params: Sequence[dict[str, Any]]) -> None:
        """
        Removes several segment chunks from the cache.

        The function expects a sequence of remove_segment_chunk() parameters as dicts.
        """
        # TODO: add a version of this function
        # that removes related cache elements as well (context images, previews, ...)
        # to provide encapsulation

        # TODO: add a generic bulk cleanup function for different objects, including related ones
        # (likely a bulk key aggregator should be used inside to reduce requests count)

        keys_to_remove = []
        for item_params in params:
            db_obj = item_params.pop("db_segment")
            keys_to_remove.append(self._make_chunk_key(db_obj, **item_params))

        self._bulk_delete_cache_items(keys_to_remove)

        Removes several segment chunks from the cache.

        The function expects a sequence of remove_segment_chunk() parameters as dicts.
        
cvat/apps/engine/cache.py