AttachmentService.Delete Method
- Namespace:
- Weavy.Core.Services
- Assembly:
- Weavy.Core.dll
Delete(int, bool)
Permanently deletes an attachment from the repository.
public static Attachment Delete(int id, bool sudo = false)
Parameters
- id
- int
Id of the attachment to delete.
- sudo
- bool
true
to perform action as super user, otherwise false
.
Returns
Attachment
The deleted attachment.