The article discusses the challenge of programmatically deleting Copilot Studio Bots as Admin and presents two main options for achieving this. The first option is using the Dataverse connector Bound Action "PvaDeleteBot", which can delete the bot but not the associated Azure Application. The second option is using the Dataverse Web API and calling the "PvaDeleteBot" action with the URL parameter "tag=deprovisionbotondelete", which can delete both the bot and the associated Azure Application. The article also introduces the Application Users Generator solution, which helps create and manage Application Users for calling the Dataverse API. Additionally, the article presents the Chatbot Remover solution, which leverages the App Users Generator to create a Child Flow for deleting bots. The article concludes with some comments and perspectives on the solutions.
Login now to access my digest by 365.Training