Skip to main content
MindStudio
Pricing
Blog About
My Workspace
Databases

Delete Data Source

The Delete Data Source block removes a vector data source that belongs to the current app.

Delete a vector data source from your app

The Delete Data Source block removes a vector data source that belongs to the current app. It accepts a single required parameter — dataSourceId — which is a string identifying the data source to delete. This field supports variable interpolation, so the ID can be passed in dynamically at runtime rather than hardcoded into the workflow configuration.

When the block executes, it returns an output object containing the dataSourceId of the deleted data source, confirming which record was acted upon. This makes it straightforward to chain the block with downstream steps that need to reference or log the deletion.

This block fits into workflows that manage the lifecycle of vector databases within an app — for example, cleaning up temporary data sources created during a session, removing outdated knowledge bases as part of a data refresh process, or handling user-triggered deletion requests. Because the data source must belong to the current app version, it is suited for self-contained app management flows rather than cross-app operations.

What you can build

Real-world workflows powered by the Delete Data Source block.

Session Cleanup Automation

Automatically delete temporary vector data sources created during a user session once the session ends, keeping the app's data layer tidy.

Knowledge Base Refresh

Remove an outdated vector data source as the first step in a workflow that rebuilds and repopulates a knowledge base with fresh content.

User-Triggered Data Removal

Allow end users to request deletion of a specific data source through an app interface, with the block executing the removal based on a dynamically passed ID.

Versioned Data Source Rotation

Delete the previous version of a data source after a new version has been successfully created and validated, as part of a version rotation workflow.

Automated Data Expiry

Trigger deletion of data sources that have passed a defined expiry threshold, using a scheduled workflow that passes the relevant IDs dynamically.

Multi-Step Data Pipeline Reset

Clear existing vector data sources at the start of a data pipeline run to ensure downstream ingestion steps begin with a clean state.

Ready to add Delete Data Source to your workflow?

Get Started Free

Common questions about Delete Data Source

What is the required parameter for this block?

The block requires a single parameter: dataSourceId, which is a string containing the ID of the data source to delete. This field supports variable interpolation, so it can be set dynamically using runtime variables.

What does the block return after execution?

The block outputs an object with one field: dataSourceId, which is the ID of the data source that was deleted. This can be used in subsequent workflow steps to confirm or log which data source was removed.

Can this block delete data sources from other apps?

No. The data source being deleted must belong to the current app version. The block cannot be used to delete data sources associated with other apps.

What kinds of workflows commonly use this block?

This block is commonly used in data lifecycle management workflows, such as cleaning up temporary data sources after a session, rotating versioned knowledge bases, or resetting a data pipeline before re-ingestion.

Can the dataSourceId be set dynamically at runtime?

Yes. The dataSourceId field supports variable interpolation, which means you can pass in the ID from a previous block's output or from a user input rather than hardcoding a fixed value.

Add Delete Data Source to your workflow

Build powerful AI workflows with drag-and-drop blocks. No coding required.