DeleteAttachment deletes the given attachment and optionally the associated file.
(a *Attachment, remove bool)
| 158 | |
| 159 | // DeleteAttachment deletes the given attachment and optionally the associated file. |
| 160 | func DeleteAttachment(a *Attachment, remove bool) error { |
| 161 | _, err := DeleteAttachments([]*Attachment{a}, remove) |
| 162 | return err |
| 163 | } |
| 164 | |
| 165 | // DeleteAttachments deletes the given attachments and optionally the associated files. |
| 166 | func DeleteAttachments(attachments []*Attachment, remove bool) (int, error) { |
nothing calls this directly
no test coverage detected