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
  • Auth
    • OAuth 2
      Authorization codehttps://bitbucket.org/site/oauth2/authorize
      Token URLhttps://bitbucket.org/site/oauth2/access_token
      Scopesrepository: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 operation changes recorded.