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
/lcapi?book=1&collection=1&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. |
collection | The id of the collection, an integer, such as 1. |
book | The id of the publication, an integer, such as 1. |
Returns
- On success
- Returns nothing.
- On failure
- Returns nothing.