Remove one or several objects (Procedures, Functions or Triggers) of the database.

1 connection.schema.code.drop

<connection.schema.code.drop
    debug='debug'
    type='type'
    dict='dict'
    pattern='pattern'
    drop-all='drop-all'
/>
Example

Remove the triggers which meet with the pattern capuntes_%

Copy
<xsql-script name='compile_trigger'>
    <body>
        <println>
            <connection.schema.code.drop
                type='trig'
                dict='wic_misc'
                pattern='capuntes_%'
            />
        </println>
    </body>
</xsql-script>

The xsql-script prints the result:

Copy
+--------------+------+--------+-------+------------+-----+------+-----------------------------+-------+
|dbms          |schema|dict    |type   |code        |group|error |message                      |warning|
+--------------+------+--------+-------+------------+-----+------+-----------------------------+-------+
|demo_formacion|      |wic_misc|trigger|capuntes_del|     |false |TRIGGER capuntes_del dropped.|       |
|demo_formacion|      |wic_misc|trigger|capuntes_ins|     |false |TRIGGER capuntes_ins dropped.|       |
+--------------+------+--------+-------+------------+-----+------+-----------------------------+-------+