DELETE - DELETE - The DELETE action executes an SQL DELETE statement against a supported database. - Content Innovation Cloud - Hyland Automate Modeler - Current/Hyland-Automate-Modeler/iku1677231236802 - Current - Current

Hyland Automate Modeler

Platform
Content Innovation Cloud
Product
Hyland Automate Modeler
Release
Current
License
ft:lastPublication
2026-11-09T23:07:34.300254
ft:locale
en-US

The DELETE action executes an SQL DELETE statement against a supported database.

Use this action to remove records from a database. Query parameters can be passed separately from the SQL statement using metadata values, allowing data from forms, process variables, and integrations to be used when identifying records to delete. Database queries are executed using prepared statements to support secure parameter handling.

CAUTION: Deleting records permanently removes data from the target table unless database-specific recovery mechanisms are available.

The input parameters of the action are:

Parameter Type Required Description
query String Required The SQL DELETE statement to execute against the database.
metadata JSON Optional A list of parameters that can be passed into the SQL statement.

The metadata parameter can be used to pass process variables into the SQL statement. The example metadata:

{
  "customerId": "CUST-10025"
}

Can be used with the following query:

DELETE FROM customers
WHERE customer_id = {customerId};

In this example, the value contained in metadata is substituted into the query as a prepared statement parameter when the SQL statement is executed.

Note: Parameter placeholders are specified using curly braces ({ }) and are not enclosed in quotation marks. The connector passes the values separately from the SQL statement using prepared statements to help prevent SQL injection attacks.

The output parameters of the action are:

Parameter Type Required Description
result Integer Optional

The number of database rows affected by the DELETE statement.

If the delete operation removes one customer record, the output might be:

{
  "result": 1
}

This indicates that one row in the database was successfully deleted.