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 :
Power Platform Community / Forums / Power Automate / Send an HTTP request t...
Power Automate
Unanswered

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

(0) ShareShare
ReportReport
Posted on 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.

Categories:
I have the same question (0)
  • Verified answer
    Expiscornovus Profile Picture
    33,175 Most Valuable Professional on at
    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

  • _poweruser_ Profile Picture
    8 on at
    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 🙂

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 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard