Skip to content
KNIME Documentation
Main Navigation Get startedBuildWork with KnimeAccount and adminRelease notesDeveloper tools
Community Hub
DevelopersKnime
Sidebar Navigation

Getting Started

Installation

User Guide

Release Notes

Install Extensions

Building Workflows

Components

Flow Control

Expressions

File Handling

Deployment

Integrated Deployment

Workflow Invocation

Best Practices

Advanced Features

AI Extension

Get Started

Build an Agent

Inject context with RAG

LLM Providers

Tutorials

Summarize product reviews

Product FAQ assistant

Restaurant agent

Your first local agent

Task extractor

Reporting

Kerberos

Extensions

Database

Overview

Tutorials

Read and filter data from a database

Write a transformed dataset to a database

Concepts

Ports and Sessions

Query Generation

Type Mapping

Deprecated Framework

Connecting

Connect: Dedicated Node

Connect: File-Based Database

Connect: Generic DB Connector

Register a JDBC Driver

Install Third-Party Driver Plug-in

Drivers on Hub and Server

Kerberos Constrained Delegation

Reading and Transforming

Read Data

Transform Data Visually

Run a Custom SQL Query

Parameterize a Query

Writing and Modifying

Insert, Update, or Merge

Delete Rows

Bulk Load Data

Create and Remove Tables

Use Transactions

Reference

Connector Node Settings

JDBC Driver Reference

Deprecated Node Mapping

Migrate Deprecated Workflows

Python

Overview

Tutorials

Python Scripting Quickstart

Data App Development Using Plotly

Data Processing

K-AI Scripting Assistant

Data Type Conversion

Batch Processing

Jupyter Integration

Environment Management

Pixi Configuration

Dependency Management

Environment Persistence

Channel Mirrors & Air-Gapped Setups

Conda Migration

Alternative Configurations

Conda and Miniforge Setup

Conda Environment Propagation

Manual Python Configuration

Legacy Node Migration

Concepts

Pixi Backend Architecture

Storage Logic

Python Environments on Executors

Reference

Python Scripting API

Bundled Packages

Executor and Hub Configuration

Troubleshooting Guide

API Reference

Inputs and outputs

Classes

Views

Utility functions

R

Deep Learning

Snowflake

Google Cloud

Azure

AWS

Big Data

Big Data Admin

Big Data Secured Cluster

Databricks

Microsoft Fabric

Power BI

Tableau

Report Designer

H2O

Changelogs

Version 5.12

Version 5.11

Version 5.10

Version 5.9

Version 5.8

Version 5.7

Version 5.6

Version 5.5

Version 5.3

Extensions

Delete rows from a database table ​

Use DB Reference Row Deleter to delete rows that match values in a KNIME input table, or DB Row Deleter to delete rows that match filter conditions you define in the node configuration.

Before you begin ​

  • Establish a database connection. See Connect to a database using a dedicated connector node.
  • For DB Reference Row Deleter: prepare a KNIME data table whose column values identify the rows to delete. Column names must match the target database table exactly.

Delete rows matching a KNIME table with DB Reference Row Deleter ​

The DB Reference Row Deleter node deletes rows from a database table using values from a KNIME reference table.

  1. Connect the DB Connection output port to a DB Reference Row Deleter node, and connect the KNIME data table with the identifying values to the second input port.
  2. Click the node once to open its configuration.
  3. Under Database Table, enter the Schema name and Table name, or click Browse to select the target table.
  4. Under If a database error occurs, choose Fail or Ignore.
  5. Set Batch size to the number of rows to send per database statement.
  6. Under Changing, select the Columns for row identification (WHERE in SQL) — the columns whose values are compared against the database table to find rows to delete. Column names must match those in the database.
  7. Under Output, tick Append status column or Append error column to add the corresponding column to the KNIME output table, and set their column names.
  8. Click Show advanced settings to configure Disable DB Data output port or Output Type Mapping.
  9. Click Apply to save the configuration, or Apply and Execute to save it and run the node.

Delete rows matching filter conditions with DB Row Deleter ​

The DB Row Deleter node deletes rows from a database table that match filter conditions you define, or every row in the table.

  1. Connect the DB Connection or DB Data output port to a DB Row Deleter node.
  2. Click the node once to open its configuration.
  3. Under Database Table, enter the Schema name and Table name, or click Browse to select the target table.
  4. Under Delete, set Mode to Matching rows to delete only rows that match a filter, or All rows to delete every row in the table.
  5. If Mode is set to Matching rows, click + Add filter criterion to define the columns, operators, and values that identify rows to delete. These conditions generate the WHERE clause of the DELETE statement.
  6. Under Output, tick Append status column or Append error column to add the corresponding column to the KNIME output table, and set their column names.
  7. Click Apply to save the configuration, or Apply and Execute to save it and run the node.

An example workflow is available on KNIME Hub.

Next steps ​

  • Insert, update, or merge data
  • Use database transactions

Related pages ​

  • Type mapping
  • Create and remove database tables
Pager
Next pageInstallation