When an item is deleted from a SharePoint list, I want to be able to delete the subfolder that I have created in a document Library, in order to store the attachments related to this item.
Every time a user uploads an attachment (from powerapps), a subfolder is created in a doc library that contains the attachment.
How can I delete the subfolder?
Solved! Go to Solution.
Hi @marial16,
You could use the Delete item action to delete the subfolder, actually, you could consider the library as a SharePoint list, each file and folder is an item stored in the SharePoint list. Please refer to the following steps:
Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
hi @marial16 by using default actions the are no way to do that but you can use API to delete folders instead see the doc https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/working-with-folders-and-files-with-rest and see my video to know how can you use api from office 365 https://www.youtube.com/watch?v=eSwdxAJQmJU&t=1s
I hope this can helps.
Proud to be a Flownaut!
Hi @marial16,
You could use the Delete item action to delete the subfolder, actually, you could consider the library as a SharePoint list, each file and folder is an item stored in the SharePoint list. Please refer to the following steps:
Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.