Documentation Center

Delete attachment

Deletes an attachment, identified by the attachment ID that it is attached to, and the filename of the attachment. A user can delete only those attachments to which they have access.

Example API call

/servlets3/wietmsd?id=1521042022969&book=s1000d_bike_41&collection=default&target=attach&action=attach_delete&attach_id=1520535782919_1520535808466
&filename=att_1520535782919_1520535808466.txt&user_name=admin

Parameters

ParameterDescription
targetattach
actionattach_delete
attach_idThe attach_id attribute associated with the attachment.
filenameThe unique file name under which the attachment is stored on the file system.
user_nameThe user name of the owner of the attachment to be deleted.
idA session ID that is valid for this collection and publication combination.
collectionThe name of the collection that the publication is registered in, such as default.
book The name of the publication, such as s1000d_bike_41.

Returns

On success
Returns nothing.
On failure
Returns nothing.