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

Community site session details

Session Id : Wm5g/MnVLgxWonmaGWlmmc
Power Automate - Building Flows
Answered

Send an HTTP request to SharePoint action DELETE Method request returning "405 Method Not Allowed"

Like (0) ShareShare
ReportReport
Posted on 12 Apr 2024 01:03:13 by 8

I'm trying to create a flow that will clear Microsoft Forms responses every week (so the form can be reused as it is a weekly check-in). I have set up the flow like the below following a guide I saw on YouTube.

 

_poweruser__0-1712882358094.png

 

The outputs contain the Tenant ID, UserID, and FormID respectively. I've checked that these values are right as they are what is shown in the network tab on the MS Form. The GET request works to retrieve the responses but when I run the DELETE request it gives me the below 405 Method Not Allowed error.

 

_poweruser__2-1712882865275.png

 

GET response to retrieve the forms responses working. So the IDs are correct.

 

_poweruser__3-1712883596514.png

 

Not sure if the DELETE method not working is an issue on my end, the form settings, or Power Automate/Microsoft Servers as I've seen a couple other people also have this problem but no solution posted. The tutorial I was following did not put anything in their request headers and it worked.

 

Any help is appreciated.

I have the same question (0)
  • _poweruser_ Profile Picture
    8 on 12 Apr 2024 at 09:16:22
    Re: Send an HTTP request to SharePoint action DELETE Method request returning "405 Method Not Allowed"

    Hi @Expiscornovus

    Removing 'light' did the trick and it works now, thank you so much 🙂

  • Verified answer
    Expiscornovus Profile Picture
    32,205 Most Valuable Professional on 12 Apr 2024 at 08:10:50
    Re: Send an HTTP request to SharePoint action DELETE Method request returning "405 Method Not Allowed"

    Hi @_poweruser_,

     

    Can you remove light from your URI and try again?

     

    I used the below format for my URI in my test which successfully deleted all responses in my test form.

     

     

    formapi/api/@{parameters('TenantId (exp_TenantId)')}/users/@{outputs('Get_my_profile_(V2)')?['body/id']}/forms('@{variables('FormId')}')/responses

     

     

     

    formid_checking.png

     

    As you can see the flow was happy with this.

     

    deleteresponses.png

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Loading complete