Remove assets

Overview

Removes images and videos, together with their annotations, from a dataset. The assets themselves stay in OvalBee, only their membership in that dataset is dropped.

Use it after filtering or sampling when a flow needs to drop a known batch from the working dataset.

When a second dataset is provided, the node removes only assets present in both datasets.

Dataset Remove assets Dataset

If it is not provided, the node removes every image and video from the source dataset.

Remove assets Dataset

How it works

1

Collects the images and videos in the source dataset.

2

Keeps only assets that also appear in the assets dataset when one is set. Otherwise, targets every source image and video.

3

Removes the matched assets and the annotations linked to them, then refreshes the source statistics.

FAQ

Every image and video in the source dataset, plus the annotations linked to them.

Yes. The annotations linked to each removed asset leave the dataset with it. The badge counts the removed images and videos, not the annotations.

No. They lose their membership in the source dataset, but the underlying assets and files stay in OvalBee.

Not from a version. The node changes the source dataset in place and doesn’t create a new dataset version first. The removed assets still exist in OvalBee, so if another dataset still holds them, such as the assets dataset, Copy can add them back.

The node stops the flow and leaves the source dataset unchanged.

Inputs

From dataset
datasetRequired

Dataset that loses the assets. Annotations attached to them are removed as well. Key: SRC_DATASET.

Dataset (assets to remove)
dataset

Dataset naming which assets to remove: only the ones it shares with the source are taken out. Leave empty to remove everything from the source dataset. Key: ASSETS_DATASET.

Outputs

Dataset
dataset

ID of the source dataset after removal. Key: DATASET.

Last Removed Assets Count
string

Short badge with the number of assets removed in the latest run. Shown on the node as a badge. Key: LAST_REMOVED_ASSETS_COUNT.

JSON config

Machine-readable node interface for automation and advanced usage.

{
"name": "Remove assets",
"description": "Removes images and videos, with their annotations, from an OvalBee dataset - all of them, or only the ones a second dataset also holds.",
"category": "Assets",
"namespace": "ovalbee",
"templateKey": "asset_ops/remove_assets",
"version": "v1",
"inputs": [
{
"key": "SRC_DATASET",
"label": "From dataset",
"type": "dataset",
"description": "Dataset that loses the assets. Annotations attached to them are removed as well.",
"required": true,
"default": null,
"visibleWhen": null,
"options": {
"creatable": false
}
},
{
"key": "ASSETS_DATASET",
"label": "Dataset (assets to remove)",
"type": "dataset",
"description": "Dataset naming which assets to remove: only the ones it shares with the source are taken out. Leave empty to remove everything from the source dataset.",
"required": false,
"default": null,
"visibleWhen": null,
"options": {
"creatable": false
}
}
],
"outputs": [
{
"key": "DATASET",
"label": "Dataset",
"type": "dataset",
"description": "ID of the source dataset after removal.",
"artifact": false,
"badge": false,
"badgeOpens": null,
"hidden": false
},
{
"key": "LAST_REMOVED_ASSETS_COUNT",
"label": "Last Removed Assets Count",
"type": "string",
"description": "Short badge with the number of assets removed in the latest run.",
"artifact": false,
"badge": true,
"badgeOpens": null,
"hidden": false
}
]
}