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?