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.

- 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
This functions doesn't return anything