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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Unable to delete the R...
Copilot Studio
Suggested Answer

Unable to delete the REST API tool (and associated Custom Connector)

(0) ShareShare
ReportReport
Posted on by 2
I have created tools via REST tool creation wizard which is Preview phase as of today. It created one "REST API" type tool and one "Custom Connector" type in Tools view.
 
I just want to cleanup these resources as I've finished my tutorial. However, even after I deleted the Connection associated with the Custom Connector, I can't delete the Custom Connector in Power Automate portal.
 
Actually, when I delete this custom connector, it's gone from the UI once. However, because the DELETE request is 400 by the following error, it's not deleted at all and reappear after reloading the page of Custom Connectors page.
 
```
{
    "error": {
        "code": "InstanceApiRequestFailed",
        "message": "The request failed with error: '{\"error\":{\"code\":\"0x8004f01f\",\"message\":\"The connector(f39b9a70-b969-4146-b525-a93f1298681a) component cannot be deleted because it is referenced by 1 other components. For a list of referenced components, use the RetrieveDependenciesForDeleteRequest.\"}}'. The correlation Id is '4be8f2f0-152b-45a6-bd23-29fd13c06cc5'."
    }
}
```
 
I guess this "1 other components" is the REST API tool. However, in the edit view of the REST API, there is no delete button. When I click the Edit button on the top right, it opens the REST API wizard (API plugin details) again but it only allows editing the REST API and still I can't find any delete button.
 
How can I delete both tools? 
Categories:
I have the same question (0)
  • MichaelFP Profile Picture
    1,999 Moderator on at
    Did you delete the connection that you created for test you custom connector? 
    Did you delete the connection reference that you created for test you custom connector? 
     
    You can't have connection references and connections related to the custom connector before you delete. You must delete connection references and connections and after delete the custom connector.
    -----------------------------
    If my answer helped you, please give me a thumbs up (👍). 
    If solve your question please mark as answer ✔️. This is help the community.
    If you want talk with me just tag me @MichaelFP 
  • Suggested answer
    RI-14030319-0 Profile Picture
    2 on at
    All the connections were deleted but I still faced the same issue.
     
    Anyway, I was able to resolve this. The problem was AIPlugin inside the Solution created on Power Apps. Once I go to Power Apps, open the Solution automatically created, go to AIPlugin (and AIPluginOperation if needed) and delete all objects, I can delete Custome connectors without errors, too.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 305

#2
Vish WR Profile Picture

Vish WR 170

#3
11manish Profile Picture

11manish 146

Last 30 days Overall leaderboard