Signature

global static void deleteAttachments(
  List<Types.DeleteAttachmentInput> attachmentInputs,
  String library,
  String runAs
)
Parameters
ParameterDescription
attachmentInputs requiredList of Types.DeleteAttachmentInput.
library
String
requiredType of Library. Example - sharepoint
runAs
String
requiredEmail Id of the user on whom behalf the function should run. If you want to run the action as automation user, supply integrationUser.

Return Type

void

Example

List<cldfs.Types.DeleteAttachmentInput> deleteAttachmentInputs = new List<cldfs.Types.DeleteAttachmentInput>{
  new cldfs.Types.DeleteAttachmentInput(
    '6761bc5d7e748db3f896e416',
    'file',
    '006DXXXXXXXXXXXX'
  )
};

cldfs.Client.deleteAttachments(deleteAttachmentInputs,'google','integrationUser');