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
| Parameter | Description |
|---|---|
target | attach |
action | attach_delete |
attach_id | The attach_id attribute associated with the attachment. |
filename | The unique file name under which the attachment is stored on the file system. |
user_name | The user name of the owner of the attachment to be deleted. |
id | A session ID that is valid for this collection and publication combination. |
collection | The 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.