Snippets

Delete a previous revision of a snippet

Deletes the snippet.

Note that this only works for versioned URLs that point to the latest commit of the snippet. Pointing to an older commit results in a 405 status code.

To delete a snippet, regardless of whether or not concurrent changes are being made to it, use DELETE /snippets/{encoded_id} instead.

delete/snippets/{workspace}/{encoded_id}/{node_id}

Request

  • Base URL
    https://api.bitbucket.org/2.0
  • URL
    https://api.bitbucket.org/2.0/snippets/{workspace}/{encoded_id}/{node_id}
  • Auth
    • OAuth 2
      Authorization code: https://bitbucket.org/site/oauth2/authorize
      Token URL: https://bitbucket.org/site/oauth2/access_token scopes: snippet:write
    • or HTTP basic
    • or API key in header Authorization

Response

If the snippet was deleted successfully.

Changes

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