GitHub · Capability

GitHub Repos API — Delete

GitHub Repos API — Delete. 43 operations. Lead operation: Delete Repository. Self-contained Naftiko capability covering one Github business surface.

Run with Naftiko GithubDelete

What You Can Do

DELETE
Deleterepository — Delete Repository
/v1/repos/{owner}/{repo}
DELETE
Deleteanartifact — Delete An Artifact
/v1/repos/{owner}/{repo}/actions/artifacts/{artifact-id}
DELETE
Deletegithubactionscachesforrepositoryusingcachekey — Delete Github Actions Caches For Repository (using Cache Key)
/v1/repos/{owner}/{repo}/actions/caches
DELETE
Deletegithubactionscacheforrepositoryusingcacheid — Delete Github Actions Cache For Repository (using Cache Id)
/v1/repos/{owner}/{repo}/actions/caches/{cache-id}
DELETE
Deleteselfhostedrunnerfromrepository — Delete Self-hosted Runner From Repository
/v1/repos/{owner}/{repo}/actions/runners/{runner-id}
DELETE
Deleteworkflowrun — Delete Workflow Run
/v1/repos/{owner}/{repo}/actions/runs/{run-id}
DELETE
Deleteworkflowrunlogs — Delete Workflow Run Logs
/v1/repos/{owner}/{repo}/actions/runs/{run-id}/logs
DELETE
Deleterepositorysecret — Delete Repository Secret
/v1/repos/{owner}/{repo}/actions/secrets/{secret-name}
DELETE
Deleterepositoryvariable — Delete Repository Variable
/v1/repos/{owner}/{repo}/actions/variables/{name}
DELETE
Deleteanautolinkreferencefromrepository — Delete An Autolink Reference From Repository
/v1/repos/{owner}/{repo}/autolinks/{autolink-id}
DELETE
Deletebranchprotection — Delete Branch Protection
/v1/repos/{owner}/{repo}/branches/{branch}/protection
DELETE
Deleteadminbranchprotection — Delete Admin Branch Protection
/v1/repos/{owner}/{repo}/branches/{branch}/protection/enforce-admins
DELETE
Deletepullrequestreviewprotection — Delete Pull Request Review Protection
/v1/repos/{owner}/{repo}/branches/{branch}/protection/required-pull-request-reviews
DELETE
Deletecommitsignatureprotection — Delete Commit Signature Protection
/v1/repos/{owner}/{repo}/branches/{branch}/protection/required-signatures
DELETE
Deleteaccessrestrictions — Delete Access Restrictions
/v1/repos/{owner}/{repo}/branches/{branch}/protection/restrictions
DELETE
Deletecodescanninganalysisfromrepository — Delete Code Scanning Analysis From Repository
/v1/repos/{owner}/{repo}/code-scanning/analyses/{analysis-id}
DELETE
Deletecommitcomment — Delete Commit Comment
/v1/repos/{owner}/{repo}/comments/{comment-id}
DELETE
Deletecommitcommentreaction — Delete Commit Comment Reaction
/v1/repos/{owner}/{repo}/comments/{comment-id}/reactions/{reaction-id}
DELETE
Deletefile — Delete File
/v1/repos/{owner}/{repo}/contents/{path}
DELETE
Deleterepositorysecret — Delete Repository Secret
/v1/repos/{owner}/{repo}/dependabot/secrets/{secret-name}
DELETE
Deletedeployment — Delete Deployment
/v1/repos/{owner}/{repo}/deployments/{deployment-id}
DELETE
Deleteanenvironment — Delete An Environment
/v1/repos/{owner}/{repo}/environments/{environment-name}
DELETE
Deletedeploymentbranchpolicy — Delete Deployment Branch Policy
/v1/repos/{owner}/{repo}/environments/{environment-name}/deployment-branch-policies/{branch-policy-id}
DELETE
Deleteanenvironmentsecret — Delete An Environment Secret
/v1/repos/{owner}/{repo}/environments/{environment-name}/secrets/{secret-name}
DELETE
Deleteanenvironmentvariable — Delete An Environment Variable
/v1/repos/{owner}/{repo}/environments/{environment-name}/variables/{name}
DELETE
Deletereference — Delete Reference
/v1/repos/{owner}/{repo}/git/refs/{ref}
DELETE
Deleterepositorywebhook — Delete Repository Webhook
/v1/repos/{owner}/{repo}/hooks/{hook-id}
DELETE
Deleterepositoryinvitation — Delete Repository Invitation
/v1/repos/{owner}/{repo}/invitations/{invitation-id}
DELETE
Deleteanissuecomment — Delete An Issue Comment
/v1/repos/{owner}/{repo}/issues/comments/{comment-id}
DELETE
Deleteanissuecommentreaction — Delete An Issue Comment Reaction
/v1/repos/{owner}/{repo}/issues/comments/{comment-id}/reactions/{reaction-id}
DELETE
Deleteanissuereaction — Delete An Issue Reaction
/v1/repos/{owner}/{repo}/issues/{issue-number}/reactions/{reaction-id}
DELETE
Deletedeploykey — Delete Deploy Key
/v1/repos/{owner}/{repo}/keys/{key-id}
DELETE
Deletelabel — Delete Label
/v1/repos/{owner}/{repo}/labels/{name}
DELETE
Deletemilestone — Delete Milestone
/v1/repos/{owner}/{repo}/milestones/{milestone-number}
DELETE
Deletegithubenterpriseserverpagessite — Delete Github Enterprise Server Pages Site
/v1/repos/{owner}/{repo}/pages
DELETE
Deletereviewcommentforpullrequest — Delete Review Comment For Pull Request
/v1/repos/{owner}/{repo}/pulls/comments/{comment-id}
DELETE
Deletepullrequestcommentreaction — Delete Pull Request Comment Reaction
/v1/repos/{owner}/{repo}/pulls/comments/{comment-id}/reactions/{reaction-id}
DELETE
Deletependingreviewforpullrequest — Delete Pending Review For Pull Request
/v1/repos/{owner}/{repo}/pulls/{pull-number}/reviews/{review-id}
DELETE
Deletereleaseasset — Delete Release Asset
/v1/repos/{owner}/{repo}/releases/assets/{asset-id}
DELETE
Deleterelease — Delete Release
/v1/repos/{owner}/{repo}/releases/{release-id}
DELETE
Deletereleasereaction — Delete Release Reaction
/v1/repos/{owner}/{repo}/releases/{release-id}/reactions/{reaction-id}
DELETE
Deleterepositorysubscription — Delete Repository Subscription
/v1/repos/{owner}/{repo}/subscription
DELETE
Deletetagprotectionstateforrepository — Delete Tag Protection State For Repository
/v1/repos/{owner}/{repo}/tags/protection/{tag-protection-id}

MCP Tools

delete-repository

Delete Repository

idempotent
delete-artifact

Delete An Artifact

idempotent
delete-github-actions-caches-repository

Delete Github Actions Caches For Repository (using Cache Key)

idempotent
delete-github-actions-cache-repository

Delete Github Actions Cache For Repository (using Cache Id)

idempotent
delete-self-hosted-runner-repository

Delete Self-hosted Runner From Repository

idempotent
delete-workflow-run

Delete Workflow Run

idempotent
delete-workflow-run-logs

Delete Workflow Run Logs

idempotent
delete-repository-secret

Delete Repository Secret

idempotent
delete-repository-variable

Delete Repository Variable

idempotent
delete-autolink-reference-repository

Delete An Autolink Reference From Repository

idempotent
delete-branch-protection

Delete Branch Protection

idempotent
delete-admin-branch-protection

Delete Admin Branch Protection

idempotent
delete-pull-request-review-protection

Delete Pull Request Review Protection

idempotent
delete-commit-signature-protection

Delete Commit Signature Protection

idempotent
delete-access-restrictions

Delete Access Restrictions

idempotent
delete-code-scanning-analysis-repository

Delete Code Scanning Analysis From Repository

idempotent
delete-commit-comment

Delete Commit Comment

idempotent
delete-commit-comment-reaction

Delete Commit Comment Reaction

idempotent
delete-file

Delete File

idempotent
delete-repository-secret-2

Delete Repository Secret

idempotent
delete-deployment

Delete Deployment

idempotent
delete-environment

Delete An Environment

idempotent
delete-deployment-branch-policy

Delete Deployment Branch Policy

idempotent
delete-environment-secret

Delete An Environment Secret

idempotent
delete-environment-variable

Delete An Environment Variable

idempotent
delete-reference

Delete Reference

idempotent
delete-repository-webhook

Delete Repository Webhook

idempotent
delete-repository-invitation

Delete Repository Invitation

idempotent
delete-issue-comment

Delete An Issue Comment

idempotent
delete-issue-comment-reaction

Delete An Issue Comment Reaction

idempotent
delete-issue-reaction

Delete An Issue Reaction

idempotent
delete-deploy-key

Delete Deploy Key

idempotent
delete-label

Delete Label

idempotent
delete-milestone

Delete Milestone

idempotent
delete-github-enterprise-server-pages

Delete Github Enterprise Server Pages Site

idempotent
delete-review-comment-pull-request

Delete Review Comment For Pull Request

idempotent
delete-pull-request-comment-reaction

Delete Pull Request Comment Reaction

idempotent
delete-pending-review-pull-request

Delete Pending Review For Pull Request

idempotent
delete-release-asset

Delete Release Asset

idempotent
delete-release

Delete Release

idempotent
delete-release-reaction

Delete Release Reaction

idempotent
delete-repository-subscription

Delete Repository Subscription

idempotent
delete-tag-protection-state-repository

Delete Tag Protection State For Repository

idempotent

Capability Spec

temp-delete.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: GitHub Repos API — Delete
  description: 'GitHub Repos API — Delete. 43 operations. Lead operation: Delete Repository. Self-contained Naftiko capability
    covering one Github business surface.'
  tags:
  - Github
  - Delete
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GITHUB_API_KEY: GITHUB_API_KEY
capability:
  consumes:
  - type: http
    namespace: temp-delete
    baseUri: ''
    description: GitHub Repos API — Delete business capability. Self-contained, no shared references.
    resources:
    - name: repos-owner-repo
      path: /repos/{owner}/{repo}
      operations:
      - name: deleterepository
        method: DELETE
        description: Delete Repository
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-actions-artifacts-artifact_id
      path: /repos/{owner}/{repo}/actions/artifacts/{artifact_id}
      operations:
      - name: deleteanartifact
        method: DELETE
        description: Delete An Artifact
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-actions-caches
      path: /repos/{owner}/{repo}/actions/caches
      operations:
      - name: deletegithubactionscachesforrepositoryusingcachekey
        method: DELETE
        description: Delete Github Actions Caches For Repository (using Cache Key)
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-actions-caches-cache_id
      path: /repos/{owner}/{repo}/actions/caches/{cache_id}
      operations:
      - name: deletegithubactionscacheforrepositoryusingcacheid
        method: DELETE
        description: Delete Github Actions Cache For Repository (using Cache Id)
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-actions-runners-runner_id
      path: /repos/{owner}/{repo}/actions/runners/{runner_id}
      operations:
      - name: deleteselfhostedrunnerfromrepository
        method: DELETE
        description: Delete Self-hosted Runner From Repository
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-actions-runs-run_id
      path: /repos/{owner}/{repo}/actions/runs/{run_id}
      operations:
      - name: deleteworkflowrun
        method: DELETE
        description: Delete Workflow Run
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-actions-runs-run_id-logs
      path: /repos/{owner}/{repo}/actions/runs/{run_id}/logs
      operations:
      - name: deleteworkflowrunlogs
        method: DELETE
        description: Delete Workflow Run Logs
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-actions-secrets-secret_name
      path: /repos/{owner}/{repo}/actions/secrets/{secret_name}
      operations:
      - name: deleterepositorysecret
        method: DELETE
        description: Delete Repository Secret
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-actions-variables-name
      path: /repos/{owner}/{repo}/actions/variables/{name}
      operations:
      - name: deleterepositoryvariable
        method: DELETE
        description: Delete Repository Variable
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-autolinks-autolink_id
      path: /repos/{owner}/{repo}/autolinks/{autolink_id}
      operations:
      - name: deleteanautolinkreferencefromrepository
        method: DELETE
        description: Delete An Autolink Reference From Repository
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-branches-branch-protection
      path: /repos/{owner}/{repo}/branches/{branch}/protection
      operations:
      - name: deletebranchprotection
        method: DELETE
        description: Delete Branch Protection
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-branches-branch-protection-enforce_admins
      path: /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins
      operations:
      - name: deleteadminbranchprotection
        method: DELETE
        description: Delete Admin Branch Protection
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-branches-branch-protection-required_pull_request_reviews
      path: /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews
      operations:
      - name: deletepullrequestreviewprotection
        method: DELETE
        description: Delete Pull Request Review Protection
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-branches-branch-protection-required_signatures
      path: /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures
      operations:
      - name: deletecommitsignatureprotection
        method: DELETE
        description: Delete Commit Signature Protection
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-branches-branch-protection-restrictions
      path: /repos/{owner}/{repo}/branches/{branch}/protection/restrictions
      operations:
      - name: deleteaccessrestrictions
        method: DELETE
        description: Delete Access Restrictions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-code-scanning-analyses-analysis_id
      path: /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}
      operations:
      - name: deletecodescanninganalysisfromrepository
        method: DELETE
        description: Delete Code Scanning Analysis From Repository
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: analysis_id
          in: path
          type: integer
          description: The ID of the analysis, as returned from the `GET /repos/{owner}/{repo}/code-scanning/analyses` operation.
          required: true
        - name: confirm_delete
          in: query
          type: string
          description: Allow deletion if the specified analysis is the last in a set. If you attempt to delete the final analysis
            in a set without setting this parameter to `true`, yo
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-comments-comment_id
      path: /repos/{owner}/{repo}/comments/{comment_id}
      operations:
      - name: deletecommitcomment
        method: DELETE
        description: Delete Commit Comment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-comments-comment_id-reactions-reaction_id
      path: /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}
      operations:
      - name: deletecommitcommentreaction
        method: DELETE
        description: Delete Commit Comment Reaction
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-contents-path
      path: /repos/{owner}/{repo}/contents/{path}
      operations:
      - name: deletefile
        method: DELETE
        description: Delete File
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: path
          in: path
          type: string
          description: path parameter
          required: true
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: repos-owner-repo-dependabot-secrets-secret_name
      path: /repos/{owner}/{repo}/dependabot/secrets/{secret_name}
      operations:
      - name: deleterepositorysecret
        method: DELETE
        description: Delete Repository Secret
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-deployments-deployment_id
      path: /repos/{owner}/{repo}/deployments/{deployment_id}
      operations:
      - name: deletedeployment
        method: DELETE
        description: Delete Deployment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-environments-environment_name
      path: /repos/{owner}/{repo}/environments/{environment_name}
      operations:
      - name: deleteanenvironment
        method: DELETE
        description: Delete An Environment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-environments-environment_name-deployment-branch-policies-branch
      path: /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}
      operations:
      - name: deletedeploymentbranchpolicy
        method: DELETE
        description: Delete Deployment Branch Policy
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-environments-environment_name-secrets-secret_name
      path: /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}
      operations:
      - name: deleteanenvironmentsecret
        method: DELETE
        description: Delete An Environment Secret
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-environments-environment_name-variables-name
      path: /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}
      operations:
      - name: deleteanenvironmentvariable
        method: DELETE
        description: Delete An Environment Variable
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-git-refs-ref
      path: /repos/{owner}/{repo}/git/refs/{ref}
      operations:
      - name: deletereference
        method: DELETE
        description: Delete Reference
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-hooks-hook_id
      path: /repos/{owner}/{repo}/hooks/{hook_id}
      operations:
      - name: deleterepositorywebhook
        method: DELETE
        description: Delete Repository Webhook
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-invitations-invitation_id
      path: /repos/{owner}/{repo}/invitations/{invitation_id}
      operations:
      - name: deleterepositoryinvitation
        method: DELETE
        description: Delete Repository Invitation
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-issues-comments-comment_id
      path: /repos/{owner}/{repo}/issues/comments/{comment_id}
      operations:
      - name: deleteanissuecomment
        method: DELETE
        description: Delete An Issue Comment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-issues-comments-comment_id-reactions-reaction_id
      path: /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}
      operations:
      - name: deleteanissuecommentreaction
        method: DELETE
        description: Delete An Issue Comment Reaction
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-issues-issue_number-reactions-reaction_id
      path: /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}
      operations:
      - name: deleteanissuereaction
        method: DELETE
        description: Delete An Issue Reaction
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-keys-key_id
      path: /repos/{owner}/{repo}/keys/{key_id}
      operations:
      - name: deletedeploykey
        method: DELETE
        description: Delete Deploy Key
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-labels-name
      path: /repos/{owner}/{repo}/labels/{name}
      operations:
      - name: deletelabel
        method: DELETE
        description: Delete Label
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: name
          in: path
          type: string
          required: true
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-milestones-milestone_number
      path: /repos/{owner}/{repo}/milestones/{milestone_number}
      operations:
      - name: deletemilestone
        method: DELETE
        description: Delete Milestone
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-pages
      path: /repos/{owner}/{repo}/pages
      operations:
      - name: deletegithubenterpriseserverpagessite
        method: DELETE
        description: Delete Github Enterprise Server Pages Site
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-pulls-comments-comment_id
      path: /repos/{owner}/{repo}/pulls/comments/{comment_id}
      operations:
      - name: deletereviewcommentforpullrequest
        method: DELETE
        description: Delete Review Comment For Pull Request
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-pulls-comments-comment_id-reactions-reaction_id
      path: /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}
      operations:
      - name: deletepullrequestcommentreaction
        method: DELETE
        description: Delete Pull Request Comment Reaction
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-pulls-pull_number-reviews-review_id
      path: /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}
      operations:
      - name: deletependingreviewforpullrequest
        method: DELETE
        description: Delete Pending Review For Pull Request
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-releases-assets-asset_id
      path: /repos/{owner}/{repo}/releases/assets/{asset_id}
      operations:
      - name: deletereleaseasset
        method: DELETE
        description: Delete Release Asset
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-releases-release_id
      path: /repos/{owner}/{repo}/releases/{release_id}
      operations:
      - name: deleterelease
        method: DELETE
        description: Delete Release
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-releases-release_id-reactions-reaction_id
      path: /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}
      operations:
      - name: deletereleasereaction
        method: DELETE
        description: Delete Release Reaction
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-subscription
      path: /repos/{owner}/{repo}/subscription
      operations:
      - name: deleterepositorysubscription
        method: DELETE
        description: Delete Repository Subscription
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-tags-protection-tag_protection_id
      path: /repos/{owner}/{repo}/tags/protection/{tag_protection_id}
      operations:
      - name: deletetagprotectionstateforrepository
        method: DELETE
        description: Delete Tag Protection State For Repository
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    authentication:
      type: bearer
      token: '{{env.GITHUB_API_KEY}}'
  exposes:
  - type: rest
    namespace: temp-delete-rest
    port: 8080
    description: REST adapter for GitHub Repos API — Delete. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/repos/{owner}/{repo}
      name: repos-owner-repo
      description: REST surface for repos-owner-repo.
      operations:
      - method: DELETE
        name: deleterepository
        description: Delete Repository
        call: temp-delete.deleterepository
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repos/{owner}/{repo}/actions/artifacts/{artifact-id}
      name: repos-owner-repo-actions-artifacts-artifact-id
      description: REST surface for repos-owner-repo-actions-artifacts-artifact_id.
      operations:
      - method: DELETE
        name: deleteanartifact
        description: Delete An Artifact
        call: temp-delete.deleteanartifact
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repos/{owner}/{repo}/actions/caches
      name: repos-owner-repo-actions-caches
      description: REST surface for repos-owner-repo-actions-caches.
      operations:
      - method: DELETE
        name: deletegithubactionscachesforrepositoryusingcachekey
        description: Delete Github Actions Caches For Repository (using Cache Key)
        call: temp-delete.deletegithubactionscachesforrepositoryusingcachekey
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repos/{owner}/{repo}/actions/caches/{cache-id}
      name: repos-owner-repo-actions-caches-cache-id
      description: REST surface for repos-owner-repo-actions-caches-cache_id.
      operations:
      - method: DELETE
        name: deletegithubactionscacheforrepositoryusingcacheid
        description: Delete Github Actions Cache For Repository (using Cache Id)
        call: temp-delete.deletegithubactionscacheforrepositoryusingcacheid
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repos/{owner}/{repo}/actions/runners/{runner-id}
      name: repos-owner-repo-actions-runners-runner-id
      description: REST surface for repos-owner-repo-actions-runners-runner_id.
      operations:
      - method: DELETE
        name: deleteselfhostedrunnerfromrepository
        description: Delete Self-hosted Runner From Repository
        call: temp-delete.deleteselfhostedrunnerfromrepository
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repos/{owner}/{repo}/actions/runs/{run-id}
      name: repos-owner-repo-actions-runs-run-id
      description: REST surface for repos-owner-repo-actions-runs-run_id.
      operations:
      - method: DELETE
        name: deleteworkflowrun
        description: Delete Workflow Run
        call: temp-delete.deleteworkflowrun
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repos/{owner}/{repo}/actions/runs/{run-id}/logs
      name: repos-owner-repo-actions-runs-run-id-logs
      description: REST surface for repos-owner-repo-actions-runs-run_id-logs.
      operations:
      - method: DELETE
        name: deleteworkflowrunlogs
        description: Delete Workflow Run Logs
        call: temp-delete.deleteworkflowrunlogs
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
    -

# --- truncated at 32 KB (72 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/github/refs/heads/main/capabilities/temp-delete.yaml