Remove Dataset Files

Remove a file from a dataset by ID.

Introduction

In some cases, you may want to remove certain files from a dataset. You can achieve this by using the RemoveDatasetFile query.

RemoveDatasetFile

Inputs

📥

RemoveDatasetFile Inputs

Imported from: from indico.queries.datasets import RemoveDatasetFile


dataset_id: int ID of the dataset (required)

file_id: int ID of the file in the dataset to remove or Datafile ID (required)

Output

📤

RemoveDatasetFile Outputs

Dataset Object with fields - id and status

Try It Out

Try out the RemoveDatasetFile call:

from indico.queries.datasets import RemoveDatasetFile
from indico.types.dataset import Dataset

dataset_id = 123
file_id = 321

dataset: Dataset = client.call(
  RemoveDatasetFile(dataset_id=dataset_id, file_id=file_id)
)