def remove_dataset_dependants(
        self, dataset: DatasetRecord, version: Optional[str] = None
    ) -> None:
        """
        When we remove dataset, we need to clear its references in other dataset
        dependencies.
        """

        When we remove dataset, we need to clear its references in other dataset
        dependencies.
        
src/datachain/data_storage/metastore.py