Hello together,
I've created a flow that collects informations and documents using Microsoft Forms. The flow works fine. In this flow, a file will be uploaded and save in my OneDrive. Now I want the document to be deleted afterwards. I'm trying to use the following actions
But I always get the following error message.
Can anybody tell me, what I'm doing wrong?
Kind regards
Kai
Hello Tom,
It worked 🙂
Thank you very much and have a nice Sunday.
Kind regards
Kai
Hello @Kai_U_P
You need the ID of the file when using this action. You can get the ID by using something like "Get file metadata using path" (I don't know what it is called in German). I would also recomment to switch Power Automate to English. It will help you to find actions and it is easier to understand what you are doing for people here.
Hello @Kai_U_P ,
when you 'Peek code' on the 'Delete file' action you'll see that the action doesn't use the file path, it uses the file ID.
To delete the file you'll need to get its ID first with the 'Get file metadata using path', that'll give you the file ID and you can delete it.
David_MA
161
Super User 2025 Season 1
Michael E. Gernaey
148
Super User 2025 Season 1
stampcoin
143