Repositories

Delete a repository

Deletes the repository. This is an irreversible operation.

This does not affect its forks.

delete/repositories/{workspace}/{repo_slug}

Request

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

Query parameters

redirect_tostring

If a repository has been moved to a new location, use this parameter to show users a friendly message in the Bitbucket UI that the repository has moved to a new location. However, a GET to this endpoint will still return a 404.

Response

Indicates successful deletion.

Changes

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