v1

latestOpenAPI 3.0.32026-07-26233989.2 KB
Developer Metrics - Teams

Delete Team

Deletes a team. By default performs a soft delete (marks the team as inactive). Set hard_delete: true to permanently remove the team and its data.

post/api/metrics/developer/teams/delete

Request body

platform'github' | 'gitlab' | 'bitbucket' | 'azure_devops' | 'azuredevops' required

Version control platform

orgstring required

Organization, workspace, or group name on the platform

github_base_urlstring

Base URL for GitHub (use for GitHub Enterprise Server)

gitlab_base_urlstring

Base URL for GitLab (use for self-hosted GitLab instances)

azure_devops_base_urlstring

Base URL for Azure DevOps (use for Azure DevOps Server)

bitbucket_base_urlstring

Base URL for Bitbucket (use for Bitbucket Data Center/Server)

team_idstring uuid required

ID of the team to delete

hard_deleteboolean

If true, permanently removes the team. If false (default), soft-deletes by marking inactive.

Example request

{
  "platform": "github",
  "org": "my-org",
  "github_base_url": "https://github.com",
  "gitlab_base_url": "https://gitlab.com",
  "azure_devops_base_url": "https://dev.azure.com",
  "bitbucket_base_url": "https://api.bitbucket.org/2.0"
}

Response

Team deleted

status'success' | 'error'
messagestring

Human-readable status message