mysql_legacy_delete
Delete rows from legacy MySQL with a mandatory WHERE clause, returning affected rows. Requires explicit enablement via MYSQL_LEGACY_ALLOW_DELETE to prevent accidental full-table deletions.
Instructions
Runs exactly one DELETE supplied in sql. WHERE is required and cannot be disabled. Off unless MYSQL_LEGACY_ALLOW_DELETE=true. Returns affectedRows. To empty a table use TRUNCATE via mysql_legacy_ddl, not a WHERE-less DELETE.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | One MySQL DELETE statement with a WHERE clause. |