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 / Power Automate / Cannot delete custom c...
Power Automate
Unanswered

Cannot delete custom connectors – orphan botcomponent dependency (error 0x8004f01f)

(0) ShareShare
ReportReport
Posted on by
Ten custom connectors cannot be deleted from any interface (Power Apps maker portal, Power Automate maker portal, Power Platform CLI `pac connector`, Microsoft.Xrm.Data.Powershell `Remove-CrmRecord`, Web API DELETE, or PowerApps RP DELETE). Every attempt returns:
  Error code: 0x8004f01f
  "The connector(<guid>) component cannot be deleted because it is referenced by 1 other components."
When I run RetrieveDependenciesForDeleteRequest against any of the 10 connectors, the only blocker is a single botcomponent (component type 10864) whose record no longer exists — verified by attempting Retrieve on the botcomponentid which returns "Entity 'botcomponent' With Id = ... Does Not Exist."
The orphan solutioncomponent rows pointing to the missing botcomponents are present in both the Default solution (fd140aaf-4df4-11dd-bd17-0019b9312238) and the Active solution (fd140aae-4df4-11dd-bd17-0019b9312238). They cannot be removed because:
  - solutioncomponent and dependency tables do not support Delete via SDK or Web API
  - RemoveSolutionComponentRequest returns success but the row remains
  - Re-creating the missing botcomponent fails with CrmDuplicateRecordException ("Cannot insert duplicate key")
Please run an internal cleanup to remove the orphan dependency rows so I can delete these connectors.
 
ORPHAN BOTCOMPONENT IDS (the dependents that no longer exist)
-------------------------------------------------------------
The dependency for FADV ADO Assistant1 points to botcomponentid:
  146493b7-8449-f111-bec6-00224821b081  (confirmed missing)
A similar orphan dependency exists for each of the other 9 connectors. Sample correlation IDs from failed deletes are available on request.
PARENT BOT (Copilot Studio agent)
---------------------------------
58180865-e648-f111-bec6-00224821b081  "FADV Azure DevOps (ADO) Assistant"
The 10 connectors above were originally added as Tools to this agent and then removed via the Copilot Studio UI. The connectors and their wrapper solutions (fadvadoAssistant1_..._9) have already been cleaned up; only the orphan dependency entries remain.
WHAT I'VE ALREADY TRIED
-----------------------
1. Power Platform CLI: pac connector list works, but `pac connector delete` is not a supported subcommand (v2.7.4)
2. Remove-PowerAppConnector (PS): returns 400 Bad Request
3. Remove-CrmRecord on connector: 0x8004f01f
4. Web API DELETE on /api/data/v9.2/connectors(<id>): 0x8004f01f
5. RemoveSolutionComponentRequest on the orphan: returns success, row not removed
6. Direct delete of solutioncomponent / dependency rows: not supported
7. Recreate botcomponent stub: CrmDuplicateRecordException
8. PublishAllXmlRequest, then retry: same error
9. Power Apps maker portal Delete: silently fails (connector reappears on refresh)
10. Power Automate maker portal Delete: same silent failure
11. PowerApps RP DELETE (api.powerapps.com/.../apis/<connector>): InstanceApiRequestFailed wrapping 0x8004f01f
REQUEST
-------
Please run the internal CleanupSolutionComponents (or equivalent) tool to remove the orphan dependency / solutioncomponent rows referencing missing botcomponentid 146493b7-8449-f111-bec6-00224821b081 (and the 9 similar orphans for the other connectors), so I can delete the 10 listed connectors normally.
Categories:
I have the same question (0)

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 > Power Automate

#1
Valantis Profile Picture

Valantis 377

#2
11manish Profile Picture

11manish 279

#3
David_MA Profile Picture

David_MA 234 Super User 2026 Season 1

Last 30 days Overall leaderboard