Flow Actions
Doc Management Flow Actions

Delete Resource

introduction the cloudfiles delete resource flow action allows you to delete a resource (file or folder) in a connected external storage, such as sharepoint, google drive, dropbox, box, or aws s3 this action can handle the deletion of a single resource or multiple resources in one execution, providing flexibility for various use cases the image below demonstrates how the delete resource action looks detailed explanations of input parameters and usage are provided in the following sections what this action does? the delete resource action simplifies the management of external storage by enabling users to automate the deletion of unnecessary or outdated files and folders directly from salesforce imagine a workflow where account folders are automatically deleted from external storage if the associated salesforce account record is archived using the delete resource action, you can trigger a flow on account record deletion to delete the associated account folder using the folder id stored in one of the account record fields use a custom object that stores metadata details for folders linked to deleted records a scheduled trigger flow can then process these records and delete the resources accordingly this action ensures that your external storage remains organized and clutter free without requiring manual intervention input parameters to use the cloudfiles delete resource action in flow builder, configure the following input parameters library description the external storage service where the resource/s is located valid values sharepoint , google , onedrive , dropbox , box , or cloudfiles (aws s3) drive id description the drive id for google drive or sharepoint where the resource/s to be deleted resides required for google drive, sharepoint how to get it use the output of previous flow actions like get connected folder docid iq8rljf2ne8sx0 iuu to retrieve the drive id or retrieve this from the content library tab in salesforce using the "view metadata" button resource id description the unique id of the resource (file or folder) to be deleted how to get it use the output of previous flow actions like get connected folder docid iq8rljf2ne8sx0 iuu or get resource details docid\ ue5s2y9qglsceiqd0serc to retrieve the resource id for example, {!outputs from get connected account folder} > resource id alternatively, use record fields where resource ids are stored resource ids description the unique id of the resource (file or folder) to be deleted how to get it configure a text collection by utilising outputs from flow actions like get folder contents docid 9mdumpjrzqenyvrixspbd or get resource details docid\ ue5s2y9qglsceiqd0serc to retrieve the resource ids for example, create a text collection by retrieving the resource ids of folder contents {!outputs from get folder contents} > resource id or use record fields which have resource id stored in them resource type (not needed for multiple resource deletion) description indicates whether the resource is a file or a folder valid values file or folder output parameters the delete resource action does not return explicit output parameters however, once executed, the specified resources will be permanently deleted from the external storage you can verify the deletion by checking the external storage to confirm the resource is no longer present