def __delete()

in src/mozmlops/cloud_storage_api_client.py [0:0]


    def __delete(self, remote_path: str) -> str:
        """
        For tests only.

        Arguments:
        remote_path (str): The filepath on GCS from which to delete the data.

        Deletes a file
        at a specific remote_path within the GCS project and bucket specified.
        """
        from google.cloud import storage

        client = storage.Client(project=self.gcs_project_name)
        bucket = client.get_bucket(self.gcs_bucket_name)

        blob = bucket.blob(remote_path)

        blob.delete()