azure-logic-appsazure-logic-app-standard

Delete files from destination if deleted from source using logic app


I am copying folders along with files from sharepoint to Azure Blob. I am using the below workflow- enter image description here

I am doing a dailyload. the create blob action will copy all the folders and files.

Issue is when few files are deleted from sharepoint (source), it should be deleted in azure blob too. In current scenerio, using create action this is not possible. What should be the approach?

How can i delete complete files and folders from blob and do a create blob action?


Solution

  • You can use below design:

    enter image description here

    Then:

    enter image description here

    Now after deleting the file in sharepoint, the same file will be deleted in Blob storage.

    Deleted file:

    enter image description here

    Output:

    Whenever file deletes this will trigger and deletes the blob:

    enter image description here

    enter image description here