Atlassian · Capability

Atlassian Bit Bucket Repositories API — Delete

Atlassian Bit Bucket Repositories API — Delete. 28 operations. Lead operation: Atlassian Delete Repository. Self-contained Naftiko capability covering one Atlassian business surface.

Run with Naftiko AtlassianDelete

What You Can Do

DELETE
Deleterepository — Atlassian Delete Repository
/v1/repositories/{workspace}/{repo-slug}
DELETE
Deletebranchrestrictionrule — Atlassian Delete Branch Restriction Rule
/v1/repositories/{workspace}/{repo-slug}/branch-restrictions/{id}
DELETE
Deletecommitcomment — Atlassian Delete Commit Comment
/v1/repositories/{workspace}/{repo-slug}/commit/{commit}/comments/{comment-id}
DELETE
Deletecommitapplicationproperty — Atlassian Delete Commit Application Property
/v1/repositories/{workspace}/{repo-slug}/commit/{commit}/properties/{app-key}/{property-name}
DELETE
Deletereport — Atlassian Delete Report
/v1/repositories/{workspace}/{repo-slug}/commit/{commit}/reports/{reportid}
DELETE
Deleteanannotation — Atlassian Delete an Annotation
/v1/repositories/{workspace}/{repo-slug}/commit/{commit}/reports/{reportid}/annotations/{annotationid}
DELETE
Deleterepositorydeploykey — Atlassian Delete Repository Deploy Key
/v1/repositories/{workspace}/{repo-slug}/deploy-keys/{key-id}
DELETE
Deletevariableforanenvironment — Atlassian Delete Variable for an Environment
/v1/repositories/{workspace}/{repo-slug}/deployments-config/environments/{environment-uuid}/variables/{variable-uuid}
DELETE
Deletedownloadartifact — Atlassian Delete Download Artifact
/v1/repositories/{workspace}/{repo-slug}/downloads/{filename}
DELETE
Deleteanenvironment — Atlassian Delete an Environment
/v1/repositories/{workspace}/{repo-slug}/environments/{environment-uuid}
DELETE
Deletewebhookforrepository — Atlassian Delete Webhook for Repository
/v1/repositories/{workspace}/{repo-slug}/hooks/{uid}
DELETE
Deleteanissue — Atlassian Delete an Issue
/v1/repositories/{workspace}/{repo-slug}/issues/{issue-id}
DELETE
Deleteanattachmentforanissue — Atlassian Delete an Attachment for an Issue
/v1/repositories/{workspace}/{repo-slug}/issues/{issue-id}/attachments/{path}
DELETE
Deletecommentonanissue — Atlassian Delete Comment on an Issue
/v1/repositories/{workspace}/{repo-slug}/issues/{issue-id}/comments/{comment-id}
DELETE
Deleteanexplicitgrouppermissionforrepository — Atlassian Delete an Explicit Group Permission for Repository
/v1/repositories/{workspace}/{repo-slug}/permissions-config/groups/{group-slug}
DELETE
Deleteanexplicituserpermissionforrepository — Atlassian Delete an Explicit User Permission for Repository
/v1/repositories/{workspace}/{repo-slug}/permissions-config/users/{selected-user-id}
DELETE
Deletecaches — Atlassian Delete Caches
/v1/repositories/{workspace}/{repo-slug}/pipelines-config/caches
DELETE
Deletecache — Atlassian Delete Cache
/v1/repositories/{workspace}/{repo-slug}/pipelines-config/caches/{cache-uuid}
DELETE
Deleteschedule — Atlassian Delete Schedule
/v1/repositories/{workspace}/{repo-slug}/pipelines-config/schedules/{schedule-uuid}
DELETE
Deletesshkeypair — Atlassian Delete Ssh Key Pair
/v1/repositories/{workspace}/{repo-slug}/pipelines-config/ssh/key-pair
DELETE
Deleteknownhost — Atlassian Delete Known Host
/v1/repositories/{workspace}/{repo-slug}/pipelines-config/ssh/known-hosts/{known-host-uuid}
DELETE
Deletevariableforrepository — Atlassian Delete Variable for Repository
/v1/repositories/{workspace}/{repo-slug}/pipelines-config/variables/{variable-uuid}
DELETE
Deleterepositoryapplicationproperty — Atlassian Delete Repository Application Property
/v1/repositories/{workspace}/{repo-slug}/properties/{app-key}/{property-name}
DELETE
Deletecommentonpullrequest — Atlassian Delete Comment on Pull Request
/v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}/comments/{comment-id}
DELETE
Deletetaskonpullrequest — Atlassian Delete Task on Pull Request
/v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}/tasks/{task-id}
DELETE
Deletepullrequestapplicationproperty — Atlassian Delete Pull Request Application Property
/v1/repositories/{workspace}/{repo-slug}/pullrequests/{pullrequest-id}/properties/{app-key}/{property-name}
DELETE
Deletebranch — Atlassian Delete Branch
/v1/repositories/{workspace}/{repo-slug}/refs/branches/{name}
DELETE
Deletetag — Atlassian Delete Tag
/v1/repositories/{workspace}/{repo-slug}/refs/tags/{name}

MCP Tools

atlassian-delete-repository

Atlassian Delete Repository

idempotent
atlassian-delete-branch-restriction-rule

Atlassian Delete Branch Restriction Rule

idempotent
atlassian-delete-commit-comment

Atlassian Delete Commit Comment

idempotent
atlassian-delete-commit-application-property

Atlassian Delete Commit Application Property

idempotent
atlassian-delete-report

Atlassian Delete Report

idempotent
atlassian-delete-annotation

Atlassian Delete an Annotation

idempotent
atlassian-delete-repository-deploy-key

Atlassian Delete Repository Deploy Key

idempotent
atlassian-delete-variable-environment

Atlassian Delete Variable for an Environment

idempotent
atlassian-delete-download-artifact

Atlassian Delete Download Artifact

idempotent
atlassian-delete-environment

Atlassian Delete an Environment

idempotent
atlassian-delete-webhook-repository

Atlassian Delete Webhook for Repository

idempotent
atlassian-delete-issue

Atlassian Delete an Issue

idempotent
atlassian-delete-attachment-issue

Atlassian Delete an Attachment for an Issue

idempotent
atlassian-delete-comment-issue

Atlassian Delete Comment on an Issue

idempotent
atlassian-delete-explicit-group-permission

Atlassian Delete an Explicit Group Permission for Repository

idempotent
atlassian-delete-explicit-user-permission

Atlassian Delete an Explicit User Permission for Repository

idempotent
atlassian-delete-caches

Atlassian Delete Caches

idempotent
atlassian-delete-cache

Atlassian Delete Cache

idempotent
atlassian-delete-schedule

Atlassian Delete Schedule

idempotent
atlassian-delete-ssh-key-pair

Atlassian Delete Ssh Key Pair

idempotent
atlassian-delete-known-host

Atlassian Delete Known Host

idempotent
atlassian-delete-variable-repository

Atlassian Delete Variable for Repository

idempotent
atlassian-delete-repository-application-property

Atlassian Delete Repository Application Property

idempotent
atlassian-delete-comment-pull-request

Atlassian Delete Comment on Pull Request

idempotent
atlassian-delete-task-pull-request

Atlassian Delete Task on Pull Request

idempotent
atlassian-delete-pull-request-application

Atlassian Delete Pull Request Application Property

idempotent
atlassian-delete-branch

Atlassian Delete Branch

idempotent
atlassian-delete-tag

Atlassian Delete Tag

idempotent

Capability Spec

bitbucket-repositories-delete.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Atlassian Bit Bucket Repositories API — Delete
  description: 'Atlassian Bit Bucket Repositories API — Delete. 28 operations. Lead operation: Atlassian Delete Repository.
    Self-contained Naftiko capability covering one Atlassian business surface.'
  tags:
  - Atlassian
  - Delete
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    ATLASSIAN_API_KEY: ATLASSIAN_API_KEY
capability:
  consumes:
  - type: http
    namespace: bitbucket-repositories-delete
    baseUri: https://api.bitbucket.org/2.0
    description: Atlassian Bit Bucket Repositories API — Delete business capability. Self-contained, no shared references.
    resources:
    - name: repositories-workspace-repo_slug
      path: /repositories/{workspace}/{repo_slug}
      operations:
      - name: deleterepository
        method: DELETE
        description: Atlassian Delete Repository
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: redirect_to
          in: query
          type: string
          description: If a repository has been moved to a new location, use this parameter to
    - name: repositories-workspace-repo_slug-branch-restrictions-id
      path: /repositories/{workspace}/{repo_slug}/branch-restrictions/{id}
      operations:
      - name: deletebranchrestrictionrule
        method: DELETE
        description: Atlassian Delete Branch Restriction Rule
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: repositories-workspace-repo_slug-commit-commit-comments-comment_id
      path: /repositories/{workspace}/{repo_slug}/commit/{commit}/comments/{comment_id}
      operations:
      - name: deletecommitcomment
        method: DELETE
        description: Atlassian Delete Commit Comment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: repositories-workspace-repo_slug-commit-commit-properties-app_key-property_name
      path: /repositories/{workspace}/{repo_slug}/commit/{commit}/properties/{app_key}/{property_name}
      operations:
      - name: deletecommitapplicationproperty
        method: DELETE
        description: Atlassian Delete Commit Application Property
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: workspace
          in: path
          type: string
          description: The repository container; either the workspace slug or the UUID in curly braces.
          required: true
        - name: repo_slug
          in: path
          type: string
          description: The repository.
          required: true
        - name: commit
          in: path
          type: string
          description: The commit.
          required: true
        - name: app_key
          in: path
          type: string
          description: The key of the Connect app.
          required: true
        - name: property_name
          in: path
          type: string
          description: The name of the property.
          required: true
    - name: repositories-workspace-repo_slug-commit-commit-reports-reportId
      path: /repositories/{workspace}/{repo_slug}/commit/{commit}/reports/{reportId}
      operations:
      - name: deletereport
        method: DELETE
        description: Atlassian Delete Report
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: workspace
          in: path
          type: string
          description: This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
            `{workspace UUID}`.
          required: true
        - name: repo_slug
          in: path
          type: string
          description: The repository.
          required: true
        - name: commit
          in: path
          type: string
          description: The commit the report belongs to.
          required: true
        - name: reportId
          in: path
          type: string
          description: Either the uuid or external-id of the report.
          required: true
    - name: repositories-workspace-repo_slug-commit-commit-reports-reportId-annotations-anno
      path: /repositories/{workspace}/{repo_slug}/commit/{commit}/reports/{reportId}/annotations/{annotationId}
      operations:
      - name: deleteanannotation
        method: DELETE
        description: Atlassian Delete an Annotation
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: workspace
          in: path
          type: string
          description: This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
            `{workspace UUID}`.
          required: true
        - name: repo_slug
          in: path
          type: string
          description: The repository.
          required: true
        - name: commit
          in: path
          type: string
          description: The commit the annotation belongs to.
          required: true
        - name: reportId
          in: path
          type: string
          description: Either the uuid or external-id of the annotation.
          required: true
        - name: annotationId
          in: path
          type: string
          description: Either the uuid or external-id of the annotation.
          required: true
    - name: repositories-workspace-repo_slug-deploy-keys-key_id
      path: /repositories/{workspace}/{repo_slug}/deploy-keys/{key_id}
      operations:
      - name: deleterepositorydeploykey
        method: DELETE
        description: Atlassian Delete Repository Deploy Key
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: repositories-workspace-repo_slug-deployments_config-environments-environment_uui
      path: /repositories/{workspace}/{repo_slug}/deployments_config/environments/{environment_uuid}/variables/{variable_uuid}
      operations:
      - name: deletevariableforanenvironment
        method: DELETE
        description: Atlassian Delete Variable for an Environment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: workspace
          in: path
          type: string
          description: This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
            `{workspace UUID}`.
          required: true
        - name: repo_slug
          in: path
          type: string
          description: The repository.
          required: true
        - name: environment_uuid
          in: path
          type: string
          description: The environment.
          required: true
        - name: variable_uuid
          in: path
          type: string
          description: The UUID of the variable to delete.
          required: true
    - name: repositories-workspace-repo_slug-downloads-filename
      path: /repositories/{workspace}/{repo_slug}/downloads/{filename}
      operations:
      - name: deletedownloadartifact
        method: DELETE
        description: Atlassian Delete Download Artifact
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: repositories-workspace-repo_slug-environments-environment_uuid
      path: /repositories/{workspace}/{repo_slug}/environments/{environment_uuid}
      operations:
      - name: deleteanenvironment
        method: DELETE
        description: Atlassian Delete an Environment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: workspace
          in: path
          type: string
          description: This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
            `{workspace UUID}`.
          required: true
        - name: repo_slug
          in: path
          type: string
          description: The repository.
          required: true
        - name: environment_uuid
          in: path
          type: string
          description: The environment UUID.
          required: true
    - name: repositories-workspace-repo_slug-hooks-uid
      path: /repositories/{workspace}/{repo_slug}/hooks/{uid}
      operations:
      - name: deletewebhookforrepository
        method: DELETE
        description: Atlassian Delete Webhook for Repository
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: repositories-workspace-repo_slug-issues-issue_id
      path: /repositories/{workspace}/{repo_slug}/issues/{issue_id}
      operations:
      - name: deleteanissue
        method: DELETE
        description: Atlassian Delete an Issue
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: repositories-workspace-repo_slug-issues-issue_id-attachments-path
      path: /repositories/{workspace}/{repo_slug}/issues/{issue_id}/attachments/{path}
      operations:
      - name: deleteanattachmentforanissue
        method: DELETE
        description: Atlassian Delete an Attachment for an Issue
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: repositories-workspace-repo_slug-issues-issue_id-comments-comment_id
      path: /repositories/{workspace}/{repo_slug}/issues/{issue_id}/comments/{comment_id}
      operations:
      - name: deletecommentonanissue
        method: DELETE
        description: Atlassian Delete Comment on an Issue
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: repositories-workspace-repo_slug-permissions-config-groups-group_slug
      path: /repositories/{workspace}/{repo_slug}/permissions-config/groups/{group_slug}
      operations:
      - name: deleteanexplicitgrouppermissionforrepository
        method: DELETE
        description: Atlassian Delete an Explicit Group Permission for Repository
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: repositories-workspace-repo_slug-permissions-config-users-selected_user_id
      path: /repositories/{workspace}/{repo_slug}/permissions-config/users/{selected_user_id}
      operations:
      - name: deleteanexplicituserpermissionforrepository
        method: DELETE
        description: Atlassian Delete an Explicit User Permission for Repository
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: repositories-workspace-repo_slug-pipelines-config-caches
      path: /repositories/{workspace}/{repo_slug}/pipelines-config/caches
      operations:
      - name: deletecaches
        method: DELETE
        description: Atlassian Delete Caches
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: workspace
          in: path
          type: string
          description: The account.
          required: true
        - name: repo_slug
          in: path
          type: string
          description: The repository.
          required: true
        - name: name
          in: query
          type: string
          description: The cache name.
          required: true
    - name: repositories-workspace-repo_slug-pipelines-config-caches-cache_uuid
      path: /repositories/{workspace}/{repo_slug}/pipelines-config/caches/{cache_uuid}
      operations:
      - name: deletecache
        method: DELETE
        description: Atlassian Delete Cache
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: workspace
          in: path
          type: string
          description: The account.
          required: true
        - name: repo_slug
          in: path
          type: string
          description: The repository.
          required: true
        - name: cache_uuid
          in: path
          type: string
          description: The UUID of the cache to delete.
          required: true
    - name: repositories-workspace-repo_slug-pipelines_config-schedules-schedule_uuid
      path: /repositories/{workspace}/{repo_slug}/pipelines_config/schedules/{schedule_uuid}
      operations:
      - name: deleteschedule
        method: DELETE
        description: Atlassian Delete Schedule
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: workspace
          in: path
          type: string
          description: This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
            `{workspace UUID}`.
          required: true
        - name: repo_slug
          in: path
          type: string
          description: The repository.
          required: true
        - name: schedule_uuid
          in: path
          type: string
          description: The uuid of the schedule.
          required: true
    - name: repositories-workspace-repo_slug-pipelines_config-ssh-key_pair
      path: /repositories/{workspace}/{repo_slug}/pipelines_config/ssh/key_pair
      operations:
      - name: deletesshkeypair
        method: DELETE
        description: Atlassian Delete Ssh Key Pair
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: workspace
          in: path
          type: string
          description: This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
            `{workspace UUID}`.
          required: true
        - name: repo_slug
          in: path
          type: string
          description: The repository.
          required: true
    - name: repositories-workspace-repo_slug-pipelines_config-ssh-known_hosts-known_host_uui
      path: /repositories/{workspace}/{repo_slug}/pipelines_config/ssh/known_hosts/{known_host_uuid}
      operations:
      - name: deleteknownhost
        method: DELETE
        description: Atlassian Delete Known Host
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: workspace
          in: path
          type: string
          description: This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
            `{workspace UUID}`.
          required: true
        - name: repo_slug
          in: path
          type: string
          description: The repository.
          required: true
        - name: known_host_uuid
          in: path
          type: string
          description: The UUID of the known host to delete.
          required: true
    - name: repositories-workspace-repo_slug-pipelines_config-variables-variable_uuid
      path: /repositories/{workspace}/{repo_slug}/pipelines_config/variables/{variable_uuid}
      operations:
      - name: deletevariableforrepository
        method: DELETE
        description: Atlassian Delete Variable for Repository
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: workspace
          in: path
          type: string
          description: This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
            `{workspace UUID}`.
          required: true
        - name: repo_slug
          in: path
          type: string
          description: The repository.
          required: true
        - name: variable_uuid
          in: path
          type: string
          description: The UUID of the variable to delete.
          required: true
    - name: repositories-workspace-repo_slug-properties-app_key-property_name
      path: /repositories/{workspace}/{repo_slug}/properties/{app_key}/{property_name}
      operations:
      - name: deleterepositoryapplicationproperty
        method: DELETE
        description: Atlassian Delete Repository Application Property
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: workspace
          in: path
          type: string
          description: The repository container; either the workspace slug or the UUID in curly braces.
          required: true
        - name: repo_slug
          in: path
          type: string
          description: The repository.
          required: true
        - name: app_key
          in: path
          type: string
          description: The key of the Connect app.
          required: true
        - name: property_name
          in: path
          type: string
          description: The name of the property.
          required: true
    - name: repositories-workspace-repo_slug-pullrequests-pull_request_id-comments-comment_i
      path: /repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/comments/{comment_id}
      operations:
      - name: deletecommentonpullrequest
        method: DELETE
        description: Atlassian Delete Comment on Pull Request
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: repositories-workspace-repo_slug-pullrequests-pull_request_id-tasks-task_id
      path: /repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/tasks/{task_id}
      operations:
      - name: deletetaskonpullrequest
        method: DELETE
        description: Atlassian Delete Task on Pull Request
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: repositories-workspace-repo_slug-pullrequests-pullrequest_id-properties-app_key-
      path: /repositories/{workspace}/{repo_slug}/pullrequests/{pullrequest_id}/properties/{app_key}/{property_name}
      operations:
      - name: deletepullrequestapplicationproperty
        method: DELETE
        description: Atlassian Delete Pull Request Application Property
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: workspace
          in: path
          type: string
          description: The repository container; either the workspace slug or the UUID in curly braces.
          required: true
        - name: repo_slug
          in: path
          type: string
          description: The repository.
          required: true
        - name: pullrequest_id
          in: path
          type: string
          description: The pull request ID.
          required: true
        - name: app_key
          in: path
          type: string
          description: The key of the Connect app.
          required: true
        - name: property_name
          in: path
          type: string
          description: The name of the property.
          required: true
    - name: repositories-workspace-repo_slug-refs-branches-name
      path: /repositories/{workspace}/{repo_slug}/refs/branches/{name}
      operations:
      - name: deletebranch
        method: DELETE
        description: Atlassian Delete Branch
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: repositories-workspace-repo_slug-refs-tags-name
      path: /repositories/{workspace}/{repo_slug}/refs/tags/{name}
      operations:
      - name: deletetag
        method: DELETE
        description: Atlassian Delete Tag
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.ATLASSIAN_API_KEY}}'
  exposes:
  - type: rest
    namespace: bitbucket-repositories-delete-rest
    port: 8080
    description: REST adapter for Atlassian Bit Bucket Repositories API — Delete. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/repositories/{workspace}/{repo-slug}
      name: repositories-workspace-repo-slug
      description: REST surface for repositories-workspace-repo_slug.
      operations:
      - method: DELETE
        name: deleterepository
        description: Atlassian Delete Repository
        call: bitbucket-repositories-delete.deleterepository
        with:
          redirect_to: rest.redirect_to
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/branch-restrictions/{id}
      name: repositories-workspace-repo-slug-branch-restrictions-id
      description: REST surface for repositories-workspace-repo_slug-branch-restrictions-id.
      operations:
      - method: DELETE
        name: deletebranchrestrictionrule
        description: Atlassian Delete Branch Restriction Rule
        call: bitbucket-repositories-delete.deletebranchrestrictionrule
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/commit/{commit}/comments/{comment-id}
      name: repositories-workspace-repo-slug-commit-commit-comments-comment-id
      description: REST surface for repositories-workspace-repo_slug-commit-commit-comments-comment_id.
      operations:
      - method: DELETE
        name: deletecommitcomment
        description: Atlassian Delete Commit Comment
        call: bitbucket-repositories-delete.deletecommitcomment
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/commit/{commit}/properties/{app-key}/{property-name}
      name: repositories-workspace-repo-slug-commit-commit-properties-app-key-property-name
      description: REST surface for repositories-workspace-repo_slug-commit-commit-properties-app_key-property_name.
      operations:
      - method: DELETE
        name: deletecommitapplicationproperty
        description: Atlassian Delete Commit Application Property
        call: bitbucket-repositories-delete.deletecommitapplicationproperty
        with:
          workspace: rest.workspace
          repo_slug: rest.repo_slug
          commit: rest.commit
          app_key: rest.app_key
          property_name: rest.property_name
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/commit/{commit}/reports/{reportid}
      name: repositories-workspace-repo-slug-commit-commit-reports-reportid
      description: REST surface for repositories-workspace-repo_slug-commit-commit-reports-reportId.
      operations:
      - method: DELETE
        name: deletereport
        description: Atlassian Delete Report
        call: bitbucket-repositories-delete.deletereport
        with:
          workspace: rest.workspace
          repo_slug: rest.repo_slug
          commit: rest.commit
          reportId: rest.reportId
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/commit/{commit}/reports/{reportid}/annotations/{annotationid}
      name: repositories-workspace-repo-slug-commit-commit-reports-reportid-annotations-anno
      description: REST surface for repositories-workspace-repo_slug-commit-commit-reports-reportId-annotations-anno.
      operations:
      - method: DELETE
        name: deleteanannotation
        description: Atlassian Delete an Annotation
        call: bitbucket-repositories-delete.deleteanannotation
        with:
          workspace: rest.workspace
          repo_slug: rest.repo_slug
          commit: rest.commit
          reportId: rest.reportId
          annotationId: rest.annotationId
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/deploy-keys/{key-id}
      name: repositories-workspace-repo-slug-deploy-keys-key-id
      description: REST surface for repositories-workspace-repo_slug-deploy-keys-key_id.
      operations:
      - method: DELETE
        name: deleterepositorydeploykey
        description: Atlassian Delete Repository Deploy Key
        call: bitbucket-repositories-delete.deleterepositorydeploykey
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/deployments-config/environments/{environment-uuid}/variables/{variable-uuid}
      name: repositories-workspace-repo-slug-deployments-config-environments-environment-uui
      description: REST surface for repositories-workspace-repo_slug-deployments_config-environments-environment_uui.
      operations:
      - method: DELETE
        name: deletevariableforanenvironment
        description: Atlassian Delete Variable for an Environment
        call: bitbucket-repositories-delete.deletevariableforanenvironment
        with:
          workspace: rest.workspace
          repo_slug: rest.repo_slug
          environment_uuid: rest.environment_uuid
          variable_uuid: rest.variable_uuid
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/downloads/{filename}
      name: repositories-workspace-repo-slug-downloads-filename
      description: REST surface for repositories-workspace-repo_slug-downloads-filename.
      operations:
      - method: DELETE
        name: deletedownloadartifact
        description: Atlassian Delete Download Artifact
        call: bitbucket-repositories-delete.deletedownloadartifact
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/environments/{environment-uuid}
      name: repositories-workspace-repo-slug-environments-environment-uuid
      description: REST surface for repositories-workspace-repo_slug-environments-environment_uuid.
      operations:
      - method: DELETE
        name: deleteanenvironment
        description: Atlassian Delete an Environment
        call: bitbucket-repositories-delete.deleteanenvironment
        with:
          workspace: rest.workspace
          repo_slug: rest.repo_slug
          environment_uuid: rest.environment_uuid
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/hooks/{uid}
      name: repositories-workspace-repo-slug-hooks-uid
      description: REST surface for repositories-workspace-repo_slug-hooks-uid.
      operations:
      - method: DELETE
        name: deletewebhookforrepository
        description: Atlassian Delete Webhook for Repository
        call: bitbucket-repositories-delete.deletewebhookforrepository
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/issues/{issue-id}
      name: repositories-workspace-repo-slug-issues-issue-id
      description: REST surface for repositories-workspace-repo_slug-issues-issue_id.
      operations:
      - method: DELETE
        name: deleteanissue
        description: Atlassian Delete an Issue
        call: bitbucket-repositories-delete.deleteanissue
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/issues/{issue-id}/attachments/{path}
      name: repositories-workspace-repo-slug-issues-issue-id-attachments-path
      description: REST surface for repositories-workspace-repo_slug-issues-issue_id-attachments-path.
      operations:
      - method: DELETE
        name: deleteanattachmentforanissue
        description: Atlassian Delete an Attachment for an Issue
        call: bitbucket-repositories-delete.deleteanattachmentforanissue
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/issues/{issue-id}/comments/{comment-id}
      name: repositories-workspace-repo-slug-issues-issue-id-comments-comment-id
      description: REST surface for repositories-workspace-repo_slug-issues-issue_id-comments-comment_id.
      operations:
      - method: DELETE
        name: deletecommentonanissue
        description: Atlassian Delete Comment on an Issue
        call: bitbucket-repositories-delete.deletecommentonanissue
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/permissions-config/groups/{group-slug}
      name: repositories-workspace-repo-slug-permissions-config-groups-group-slug
      description: REST surface for repositories-workspace-repo_slug-permissions-config-groups-group_slug.
      operations:
      - method: DELETE
        name: deleteanexplicitgrouppermissionforrepository
        description: Atlassian Delete an Explicit Group Permission for Repository
        call: bitbucket-repositories-delete.deleteanexplicitgrouppermissionforrepository
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/permissions-config/users/{selected-user-id}
      name: repositories-workspace-repo-slug-permissions-config-users-selected-user-id
      description: REST surface for repositories-workspace-repo_slug-permissions-config-users-selected_user_id.
      operations:
      - method: DELETE
        name: deleteanexplicituserpermissionforrepository
        description: Atlassian Delete an Explicit User Permission for Repository
        call: bitbucket-repositories-delete.deleteanexplicituserpermissionforrepository
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/pipelines-config/caches
      name: repositories-workspace-repo-slug-pipelines-config-caches
      description: REST surface for repositories-workspace-repo_slug-pipelines-config-caches.
      operations:
      - method: DELETE
        name: deletecaches
        description: Atlassian Delete Caches
        call: bitbucket-repositories-delete.deletecaches
        with:
          workspace: rest.workspace
          repo_slug: rest.repo_slug
          name: rest.name
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/pipelines-config/caches/{cache-uuid}
      name: repositories-workspace-repo-slug-pipelines-config-caches-cache-uuid
      description: REST surface for repositories-workspace-repo_slug-pipelines-config-caches-cache_uuid.
      operations:
      - method: DELETE
        name: deletecache
        description: Atlassian Delete Cache
        call: bitbucket-repositories-delete.deletecache
        with:
          workspace: rest.workspace
          repo_slug: rest.repo_slug
          cache_uuid: rest.cache_uuid
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/pipelines-config/schedules/{schedule-uuid}
      name: repositories-workspace-repo-slug-pipelines-config-schedules-schedule-uuid
      description: REST surface for repositories-workspace-repo_slug-pipelines_config-schedules-schedule_uuid.
      operations:
      - method: DELETE
        name: deleteschedule
        description: Atlassian Delete Schedule
        call: bitbucket-repositories-delete.deleteschedule
        with:
          workspace: rest.workspace
          repo_slug: rest.repo_slug
          schedule_uuid: rest.schedule_uuid
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/pipelines-config/ssh/key-pair
      name: repositories-workspace-repo-slug-pipelines-config-ssh-key-pair
      description: REST surface for reposito

# --- truncated at 32 KB (48 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/atlassian/refs/heads/main/capabilities/bitbucket-repositories-delete.yaml