web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Argument Folder to Del...
Power Automate
Answered

Argument Folder to Delete Must be Folder

(1) ShareShare
ReportReport
Posted on by 9

When using variable as a folder I get the error Argument Folder to delete must be Folder. Any idea what I'm doing wrong?

 

MuhammadP_0-1657187734549.png

 

I have the same question (0)
  • Verified answer
    Kresimir_RPA Profile Picture
    286 on at

    Hi,

    since you used action 'Get subfolder in folder', that  gets you subfolders and stores them into list variable %Folders%.

    So, when you want to delete dome subfolder from that list you have to specify. For first subfolder you should write

     

    Folder to delete: %Folders[0]% and it will work.

     

    You can't pass just list variable %Folders%.

     

    Kind regards,

    Crash&Peace

     

  • MuhammadP Profile Picture
    9 on at

    Thanks, it worked

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 276 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 169

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard