Flow Actions
Doc Management Flow Actions

Delete Attachment

introduction the cloudfiles delete attachment flow action is the reverse of the create attachment docid\ k qcqnduqsbbky169pk9u action it allows you to disconnect an already linked resource (file or folder) from a salesforce record once disconnected, the file or folder will no longer appear in the cloudfiles widget on the salesforce record's page the image below illustrates a sample flow using delete attachment action to remove a linked resource from a salesforce record detailed explanations of input parameters and usage are provided in the following sections what this action does the delete attachment action automates the process of unlinking or disconnecting external storage resources from salesforce records, ensuring that only relevant files or folders remain associated with a record scenario imagine an automation where files or folders linked to an opportunity need to be removed after the opportunity is closed or lost using the delete attachment action, you can disconnect these resources, ensuring they no longer appear in the cloudfiles widget on the opportunity record page input parameters when adding the cloudfiles delete attachment action in flow builder, configure the following input parameters library description the external storage service where the resource is located valid values sharepoint , google , azure , onedrive , dropbox , box , or cloudfiles (aws s3) resource id description the unique id of the resource (file or folder) to be disconnected how to get it use the output of a previous flow action 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 or use record fields which have resource id stored in them resource type description indicates whether the resource is a file or a folder valid values file or folder salesforce record id description the id of the salesforce record from which the resource will be disconnected example use {!$record id} in a record triggered flow or specify a dynamic value such as {!triggering account} > account id output parameters the delete attachment action does not return any explicit output parameters however, once executed successfully, the specified resource will be disconnected from the record you can verify this by checking the cloudfiles widget on the salesforce record page ensuring the resource no longer appears in the widget