AttachmentService.Trash Method

Namespace:
Weavy.Core.Services
Assembly:
Weavy.Core.dll

Trash(int, bool)

Sends an Attachment to the trash.

public static Attachment Trash(int id, bool sudo = false)

Parameters

id
int

Id of the file to trash.

sudo
bool

true to perform action as super user, otherwise false.

Returns

Attachment

The trashed file.