Apex
CloudFiles Client

Delete Attachment

this method can be used to disconnect a file/folder from a salesforce record cloudfiles "connects" a file/folder to a salesforce record by creating a "attachment" object this method deletes the attachment global static void deleteattachments( list\<types deleteattachmentinput> attachmentinputs, string library, string runas ) parameters attachmentinputs list of types deleteattachmentinput docid\ rah3swvgpuimajprywsf9 linbrary type of library example sharepoint 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 method doesn't return anything example list\<cldfs types deleteattachmentinput> deleteattachmentinputs = new list\<cldfs types deleteattachmentinput>{ new cldfs types deleteattachmentinput( '6761bc5d7e748db3f896e416', 'file', '006dxxxxxxxxxxxx' ) }; cldfs client deleteattachments(deleteattachmentinputs,'google','integrationuser');