Apex
CloudFiles Client
Delete Resource
this method allows you to delete a resource (file or folder) in a connected external storage, such as sharepoint, google drive, dropbox, box, or aws s3 using apex global static void deleteresources( list\<types deleteresourcesinput> resourcesinput, string library, string runas ) parameters resourcesinput list types deleteresourcesinput docid\ urbrmvjs8gb8nhqd3gcqj library valid values sharepoint , google , onedrive , dropbox , box , or cloudfiles (aws s3) runas email 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 this functions doesn't return anything 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');