attachments::unattach (public)

 attachments::unattach -object_id object_id \
    -attachment_id attachment_id

Defined in packages/attachments/tcl/attachments-procs.tcl

undo the attachment

Switches:
-object_id (required)
-attachment_id (required)

Testcases:
attachments_basic_api
Source code:
        db_dml delete_attachment {}
XQL Not present:
PostgreSQL, Oracle
Generic XQL file:
<fullquery name="attachments::unattach.delete_attachment">
    <querytext>
            delete
            from attachments
            where object_id = :object_id
            and item_id = :attachment_id
        </querytext>
</fullquery>
packages/attachments/tcl/attachments-procs.xql

[ hide source ] | [ make this the default ]
Show another procedure: