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 auth = true)

Parameters

id
int

Id of the attachment to delete.

auth
bool

true to check if the user has permission to delete the attachment, otherwise false.

Returns

Attachment

The deleted attachment.