naftiko: 1.0.0-alpha2 info: label: github-repo-actions-api — Delete description: 'github-repo-actions-api — Delete. 8 operations. Lead operation: GitHub Delete an Artifact. 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: repo-actions-delete baseUri: '' description: github-repo-actions-api — Delete business capability. Self-contained, no shared references. resources: - name: repos-owner-repo-actions-artifacts-artifact_id path: /repos/{owner}/{repo}/actions/artifacts/{artifact_id} operations: - name: deleteanartifact method: DELETE description: GitHub 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: GitHub 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: GitHub 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: GitHub 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: GitHub 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: GitHub 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: GitHub 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: GitHub 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 authentication: type: bearer token: '{{env.GITHUB_API_KEY}}' exposes: - type: rest namespace: repo-actions-delete-rest port: 8080 description: REST adapter for github-repo-actions-api — Delete. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - 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: GitHub Delete an Artifact call: repo-actions-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: GitHub Delete Github Actions Caches for Repository (using Cache Key) call: repo-actions-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: GitHub Delete Github Actions Cache for Repository (using Cache Id) call: repo-actions-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: GitHub Delete Self-hosted Runner from Repository call: repo-actions-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: GitHub Delete Workflow Run call: repo-actions-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: GitHub Delete Workflow Run Logs call: repo-actions-delete.deleteworkflowrunlogs 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/secrets/{secret-name} name: repos-owner-repo-actions-secrets-secret-name description: REST surface for repos-owner-repo-actions-secrets-secret_name. operations: - method: DELETE name: deleterepositorysecret description: GitHub Delete Repository Secret call: repo-actions-delete.deleterepositorysecret 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/variables/{name} name: repos-owner-repo-actions-variables-name description: REST surface for repos-owner-repo-actions-variables-name. operations: - method: DELETE name: deleterepositoryvariable description: GitHub Delete Repository Variable call: repo-actions-delete.deleterepositoryvariable with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - type: mcp namespace: repo-actions-delete-mcp port: 9090 transport: http description: MCP adapter for github-repo-actions-api — Delete. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: github-delete-artifact description: GitHub Delete an Artifact hints: readOnly: false destructive: true idempotent: true call: repo-actions-delete.deleteanartifact with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: github-delete-github-actions-caches description: GitHub Delete Github Actions Caches for Repository (using Cache Key) hints: readOnly: false destructive: true idempotent: true call: repo-actions-delete.deletegithubactionscachesforrepositoryusingcachekey with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: github-delete-github-actions-cache description: GitHub Delete Github Actions Cache for Repository (using Cache Id) hints: readOnly: false destructive: true idempotent: true call: repo-actions-delete.deletegithubactionscacheforrepositoryusingcacheid with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: github-delete-self-hosted-runner description: GitHub Delete Self-hosted Runner from Repository hints: readOnly: false destructive: true idempotent: true call: repo-actions-delete.deleteselfhostedrunnerfromrepository with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: github-delete-workflow-run description: GitHub Delete Workflow Run hints: readOnly: false destructive: true idempotent: true call: repo-actions-delete.deleteworkflowrun with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: github-delete-workflow-run-logs description: GitHub Delete Workflow Run Logs hints: readOnly: false destructive: true idempotent: true call: repo-actions-delete.deleteworkflowrunlogs with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: github-delete-repository-secret description: GitHub Delete Repository Secret hints: readOnly: false destructive: true idempotent: true call: repo-actions-delete.deleterepositorysecret with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: github-delete-repository-variable description: GitHub Delete Repository Variable hints: readOnly: false destructive: true idempotent: true call: repo-actions-delete.deleterepositoryvariable with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $.