Skip to main content

Notifications

Power Automate - Using Connectors
Unanswered

How do I delete a folder in SharePoint by using the hyperlink in an item of List?

(0) ShareShare
ReportReport
Posted on by

I am working on a flow with below process:

(1) First, manually upload a sub-folder with files into a designated folder in SharePoint.

(2) Second, create an item in List, where one column the "hyperlink" to the sub-folder in SharePoint is added. (For simplicity it shows "TEST" as alternative text.)

WangYT1_0-1651046663836.png

(3) After creating the item in List, trigger the Approval. If rejected, automatically delete both the "item" and "sub-folder".

 

I was able to delete the item in the List, however I had difficulties trying to identify the sub-folder in SharePoint.

The only related dynamic content that I found is the below one, however it didn't work most of time.

WangYT1_1-1651047381829.png

 

Many methods regarding deleting a folder in SharePoint I could found on the internet didn't apply to my case.

For every upload it's assumed that it will be someone unknown, so I can't predict the name of the sub-folder.

 

Could someone please give me some idea about how to do it? Thanks a lot.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,508

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,839

Leaderboard

Featured topics