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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / 'Delete File in OneDri...
Power Automate
Unanswered

'Delete File in OneDrive is giving error 400

(0) ShareShare
ReportReport
Posted on by 30

I'm just trying to delete some older files in OneDrive and I keep getting this error message. The files that I am trying to delete are in pdf forma if that matters. I keep getting an error code 400 'bad request'. The error says this api only works on files and not directories, but I am only seeing the pdf files in the folder. I know it's something easy I am overlooking. Please and thank you for all the future assistance.

 

 

 

 

ArmoneyJ210_2-1710772673019.pngArmoneyJ210_3-1710772764039.png

 

Categories:
I have the same question (0)
  • Verified answer
    v-mengmli-msft Profile Picture
    on at

    Hi @ArmoneyJ210 ,

     

    Are there subfolders in this folder?

    If so, please try this.

    Add a condition to check if the file is folder.

    vmengmlimsft_0-1710773904358.png

    Or add a condition to check if it is pdf file.

    vmengmlimsft_1-1710773957550.png

     

    ——————————————————————————————————————————————

    If my answer helps you solve the problem, please accept it as a solution.

     

     

    Best regards,

    Rimmon

  • ArmoneyJ210 Profile Picture
    30 on at

    Thanks Rimmon! the condition to check and see if it was a folder worked perfectly! I figured it was something small and simple. Thanks!!!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard