Signature

global static void deleteResources(
  List<Types.DeleteResourcesInput> resourcesInput,
  String library,
  String runAs
)
Parameters
ParameterDescription
resourcesInput requiredOne entry per resource to delete. Each is a Types.DeleteResourcesInput.
library
String
requiredTarget storage library. Valid values: sharepoint, google, onedrive, dropbox, box, or cloudfiles (AWS S3).
runAs
String
optionalEmail Id of the user on whose behalf the function should run. To run the action as the automation user, supply integrationUser.

Return Type

void

Example

List<cldfs.Types.DeleteResourcesInput> resourcesInput = new List<cldfs.Types.DeleteResourcesInput>{
    new cldfs.Types.DeleteResourcesInput(
        new List<String>{'67e3f19b2dee6c355fc82416'},
        'file',
        ''
    )
};
cldfs.Client.deleteResources(resourcesInput, 'cloudfiles', 'integrationUser');