Chris Pietschmann
Chris Pietschmann

Reputation: 29905

Use Azure DevOps REST API to Delete organizations / accounts?

Is it possible to Delete an organization / account within Azure DevOps using the REST API? You can delete other entities, but the documentation doesn't show a DELETE command for Accounts / Organizations.

Is this something that's possible? Thanks!

https://learn.microsoft.com/en-us/rest/api/azure/devops/account/accounts?view=azure-devops-rest-5.0

Upvotes: 0

Views: 821

Answers (1)

PatrickLu-MSFT
PatrickLu-MSFT

Reputation: 51093

If you no longer need your organization in Azure DevOps, you can delete it. If you change your mind within 30 days, you can recover your organization. After 30 days, your organization and data are permanently deleted.

It's not able to do this through Rest API at present. You have to do this in web portal.

There are also some limitation to directly call rest api to delete organization. For example you must first meet the prerequisites:

If your organization uses an Azure subscription to bill purchases, you must first remove billing from your organization in the Azure portal before you can delete your organization in Azure DevOps.

In the resulting dialog box, enter the name of the organization, and select Delete.

enter image description here

More details please take a look at this official tutorial: Delete your organization

Upvotes: 1

Related Questions