ODBC guide

Delete an attachment


Delete a single attachment by its sys_id. SysId is the attachment's id in the sys_attachment table. Provide the TableName (optional for clarity) and the attachment SysId.

-- Delete a single attachment by attachment sys_id
SELECT * FROM delete_attachment
WITH(
  TableName='problem', -- optional, used for context
  SysId='d871411783d6321032ddb9f6feaad339'
)