Deployments

Delete a repository deploy key

This deletes a deploy key from a repository.

delete/repositories/{workspace}/{repo_slug}/deploy-keys/{key_id}

Request

  • Base URL
    https://api.bitbucket.org/2.0
  • URL
    https://api.bitbucket.org/2.0/repositories/{workspace}/{repo_slug}/deploy-keys/{key_id}
  • Auth
    • OAuth 2
      Authorization code: https://bitbucket.org/site/oauth2/authorize
      Token URL: https://bitbucket.org/site/oauth2/access_token scopes: repository, repository:admin
    • or HTTP basic
    • or API key in header Authorization

Response

The key has been deleted

Changes

No recorded changes to this operation across all 15 revisions of this API.