Change: ‘delete’

Deletes data from an existing table

Available Attributes

NameDescriptionRequired ForSupportsSince
catalogNameName of the catalogall
schemaNameName of the schemaall
tableNameName of the tableallall
whereall
<changeSet author="liquibase-docs" id="delete-example">
    <delete catalogName="cat"
            schemaName="public"
            tableName="person">
        <where>A String</where>
    </delete>
</changeSet>
changeSet:
  id: delete-example
  author: liquibase-docs
  changes:
  - delete:
      catalogName: cat
      schemaName: public
      tableName: person
      where: A String
{
  "changeSet": {
    "id": "delete-example",
    "author": "liquibase-docs",
    "changes": [
      {
        "delete": {
          "catalogName": "cat",
          "schemaName": "public",
          "tableName": "person",
          "where": "A String"
        }
      }]
    
  }
}

SQL Generated From Above Sample (MySQL)

DELETE FROM cat.person  WHERE A String;

Database Support

DatabaseNotesAuto Rollback
DB2SupportedNo
DerbySupportedNo
FirebirdSupportedNo
H2SupportedNo
HyperSQLSupportedNo
InformixSupportedNo
MySQLSupportedNo
OracleSupportedNo
PostgreSQLSupportedNo
SQL ServerSupportedNo
SQLiteSupportedNo
SybaseSupportedNo
Sybase AnywhereSupportedNo

Missing, incomplete or wrong information? Please send a pull request