OneDrive - Deleting Files Using OneDrive File URL

Hi all,

So I have a database with a list of files stored in OneDrive, it also stored the unique OneDrive URL for each file.

I’m in the process of creating an integration to loop through the database and delete each file, however the OneDrive delete module required the file ID which I don’t have as I only have the URL.

Is there a way to do the above using the URL or is it simply not possible?

Thanks in advance.

Is it possible that the file ID is inside the one drive URL somewhere? Can you share an example of one?

1 Like

Hey, thanks for the reply.

Unfortunately, the URL doesn’t include any ID. I will have a look at the OneDrive API docs to see if there’s a way to do this.

When you upload a file via one drive it may return a file id as part of the result. Maybe when you download it too.

1 Like