How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

GitHub Delete API

The Delete API from GitHub — 86 operation(s) for delete.

GitHub Delete API is one of 350 APIs that GitHub publishes on the APIs.io network, described by a machine-readable OpenAPI specification and an AsyncAPI event-driven specification.

The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an AsyncAPI specification, and an API reference.

This API exposes 76 operations across 76 paths, and defines 12 schemas. It is described by OpenAPI 3.2.0, at version 1.1.4.

Requests are made against 2 base URLs: {protocol}://{hostname}/api/v3, {protocol}://{hostname}.

76 operations 76 paths 12 schemas 76 DELETE

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
1.1.4
Base URL
https://api.github.com
Authentication
HTTP Bearer
License
Terms of Service
Resource Areas
1

Authentication & Security 1

GitHub Delete API declares 1 security scheme for authenticating requests. It accepts HTTP bearer tokens (bearerHttpAuthentication).

  • bearerHttpAuthentication — Bearer Token

Paths & Operations 76

Across 76 paths, the API surfaces 76 operations — 76 DELETE. Each is listed below with its method, path, parameters, and response codes.

Delete 76
DELETE
/app/installations/{installation_id}
GitHub Delete an Installation for the Authenticated App
deleteAnInstallationForTheAuthenticatedApp 1 param → 204404
DELETE
/applications/grants/{grant_id}deprecated
GitHub Deletegrant
deletegrant 1 param → 204304401403
DELETE
/applications/{client_id}/grant
GitHub Delete an App Authorization
deleteAnAppAuthorization 1 param body → 204422
DELETE
/applications/{client_id}/token
GitHub Delete an App Token
deleteAnAppToken 1 param body → 204422
DELETE
/admin/users/{username}/authorizations
GitHub Delete an Impersonation Oauth Token
deleteAnImpersonationOauthToken 1 param → 204
DELETE
/authorizations/{authorization_id}deprecated
GitHub Delete an Authorization
deleteAnAuthorization 1 param → 204304401403
DELETE
/gists/{gist_id}
GitHub Deletegist
deletegist 1 param → 204304403404
DELETE
/gists/{gist_id}/comments/{comment_id}
GitHub Deletegist Comment
deletegistComment 2 params → 204304403404
DELETE
/notifications/threads/{thread_id}/subscription
GitHub Delete Thread Subscription
deleteThreadSubscription 1 param → 204304401403
DELETE
/orgs/{org}
GitHub Delete an Organization
deleteAnOrganization 1 param → 202403404
DELETE
/orgs/{org}/actions/runner-groups/{runner_group_id}
GitHub Delete Self-hosted Runner Group from an Organization
deleteSelfhostedRunnerGroupFromAnOrganization 2 params → 204
DELETE
/orgs/{org}/actions/runners/{runner_id}
GitHub Delete Self-hosted Runner from an Organization
deleteSelfhostedRunnerFromAnOrganization 2 params → 204
DELETE
/orgs/{org}/actions/secrets/{secret_name}
GitHub Delete an Organization Secret
deleteAnOrganizationSecret 2 params → 204
DELETE
/orgs/{org}/actions/variables/{name}
GitHub Delete an Organization Variable
deleteAnOrganizationVariable 2 params → 204
DELETE
/orgs/{org}/custom-repository-roles/{role_id}
GitHub Delete Custom Repository Role
deleteCustomRepositoryRole 2 params → 204
DELETE
/orgs/{org}/dependabot/secrets/{secret_name}
GitHub Delete an Organization Secret
deleteAnOrganizationSecret 2 params → 204
DELETE
/orgs/{org}/hooks/{hook_id}
GitHub Delete an Organization Webhook
deleteAnOrganizationWebhook 2 params → 204404
DELETE
/orgs/{org}/migrations/{migration_id}/archive
GitHub Delete an Organization Migration Archive
deleteAnOrganizationMigrationArchive 2 params → 204404
DELETE
/orgs/{org}/packages/{package_type}/{package_name}
GitHub Delete Package for an Organization
deletePackageForAnOrganization 3 params → 204401403404
DELETE
/orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}
GitHub Delete Package Version for an Organization
deletePackageVersionForAnOrganization 4 params → 204401403404
DELETE
/orgs/{org}/teams/{team_slug}
GitHub Delete Team
deleteTeam 2 params → 204
DELETE
/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}
GitHub Delete Discussion
deleteDiscussion 3 params → 204
DELETE
/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}
GitHub Delete Discussion Comment
deleteDiscussionComment 4 params → 204
DELETE
/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}
GitHub Delete Team Discussion Comment Reaction
deleteTeamDiscussionCommentReaction 5 params → 204
DELETE
/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}
GitHub Delete Team Discussion Reaction
deleteTeamDiscussionReaction 4 params → 204
DELETE
/projects/columns/cards/{card_id}
GitHub Delete Project Card
deleteProjectCard 1 param → 204304401403404
DELETE
/projects/columns/{column_id}
GitHub Delete Project Column
deleteProjectColumn 1 param → 204304401403
DELETE
/projects/{project_id}
GitHub Delete Project
deleteProject 1 param → 204304401403404410
DELETE
/repos/{owner}/{repo}/actions/artifacts/{artifact_id}
GitHub Delete an Artifact
deleteAnArtifact 6 params → 204
DELETE
/repos/{owner}/{repo}/actions/caches
GitHub Delete Github Actions Caches for Repository (using Cache Key)
deleteGithubActionsCachesForRepositoryUsingCacheKey 7 params → 200
DELETE
/repos/{owner}/{repo}/actions/caches/{cache_id}
GitHub Delete Github Actions Cache for Repository (using Cache Id)
deleteGithubActionsCacheForRepositoryUsingCacheId 6 params → 204
DELETE
/repos/{owner}/{repo}/actions/runners/{runner_id}
GitHub Delete Self-hosted Runner from Repository
deleteSelfhostedRunnerFromRepository 6 params → 204
DELETE
/repos/{owner}/{repo}/actions/runs/{run_id}
GitHub Delete Workflow Run
deleteWorkflowRun 6 params → 204
DELETE
/repos/{owner}/{repo}/actions/runs/{run_id}/logs
GitHub Delete Workflow Run Logs
deleteWorkflowRunLogs 6 params → 204403500
DELETE
/repos/{owner}/{repo}/actions/secrets/{secret_name}
GitHub Delete Repository Secret
deleteRepositorySecret 6 params → 204
DELETE
/repos/{owner}/{repo}/actions/variables/{name}
GitHub Delete Repository Variable
deleteRepositoryVariable 6 params → 204
DELETE
/repos/{owner}/{repo}/autolinks/{autolink_id}
GitHub Delete an Autolink Reference from Repository
deleteAnAutolinkReferenceFromRepository 6 params → 204404
DELETE
/repos/{owner}/{repo}/branches/{branch}/protection
GitHub Delete Branch Protection
deleteBranchProtection 6 params → 204403
DELETE
/repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins
GitHub Delete Admin Branch Protection
deleteAdminBranchProtection 6 params → 204404
DELETE
/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews
GitHub Delete Pull Request Review Protection
deletePullRequestReviewProtection 6 params → 204404
DELETE
/repos/{owner}/{repo}/branches/{branch}/protection/required_signatures
GitHub Delete Commit Signature Protection
deleteCommitSignatureProtection 6 params → 204404
DELETE
/repos/{owner}/{repo}/branches/{branch}/protection/restrictions
GitHub Delete Access Restrictions
deleteAccessRestrictions 6 params → 204
DELETE
/repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}
GitHub Delete Code Scanning Analysis from Repository
deleteCodeScanningAnalysisFromRepository 7 params → 200400403404503
DELETE
/repos/{owner}/{repo}/dependabot/secrets/{secret_name}
GitHub Delete Repository Secret
deleteRepositoryDependabotSecret 6 params → 204
DELETE
/repos/{owner}/{repo}/hooks/{hook_id}
GitHub Delete Repository Webhook
deleteRepositoryWebhook 6 params → 204404
DELETE
/repos/{owner}/{repo}/invitations/{invitation_id}
GitHub Delete Repository Invitation
deleteRepositoryInvitation 6 params → 204
DELETE
/repos/{owner}/{repo}/issues/comments/{comment_id}
GitHub Delete an Issue Comment
deleteAnIssueComment 6 params → 204
DELETE
/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}
GitHub Delete an Issue Comment Reaction
deleteAnIssueCommentReaction 7 params → 204
DELETE
/repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}
GitHub Delete an Issue Reaction
deleteAnIssueReaction 7 params → 204
DELETE
/repos/{owner}/{repo}/pulls/comments/{comment_id}
GitHub Delete Review Comment for Pull Request
deleteReviewCommentForPullRequest 6 params → 204404
DELETE
/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}
GitHub Delete Pull Request Comment Reaction
deletePullRequestCommentReaction 7 params → 204
DELETE
/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}
GitHub Delete Pending Review for Pull Request
deletePendingReviewForPullRequest 7 params → 200404422
DELETE
/repos/{owner}/{repo}/subscription
GitHub Delete Repository Subscription
deleteRepositorySubscription 5 params → 204
DELETE
/repos/{owner}/{repo}
GitHub Delete Repository
deleteRepository 5 params → 204307403404
DELETE
/repos/{owner}/{repo}/comments/{comment_id}
GitHub Delete Commit Comment
deleteCommitComment 6 params → 204404
DELETE
/repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}
GitHub Delete Commit Comment Reaction
deleteCommitCommentReaction 7 params → 204
DELETE
/repos/{owner}/{repo}/contents/{path}
GitHub Delete File
deleteFile 6 params body → 200404409422503
DELETE
/repos/{owner}/{repo}/deployments/{deployment_id}
GitHub Delete Deployment
deleteDeployment 6 params → 204404422
DELETE
/repos/{owner}/{repo}/environments/{environment_name}
GitHub Delete an Environment
deleteAnEnvironment 6 params → 204
DELETE
/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}
GitHub Delete Deployment Branch Policy
deleteDeploymentBranchPolicy 7 params → 204
DELETE
/repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}
GitHub Delete an Environment Secret
deleteAnEnvironmentSecret 7 params → 204
DELETE
/repos/{owner}/{repo}/environments/{environment_name}/variables/{name}
GitHub Delete an Environment Variable
deleteAnEnvironmentVariable 7 params → 204
DELETE
/repos/{owner}/{repo}/git/refs/{ref}
GitHub Delete Reference
deleteReference 6 params → 204422
DELETE
/repos/{owner}/{repo}/keys/{key_id}
GitHub Delete Deploy Key
deleteDeployKey 6 params → 204
DELETE
/repos/{owner}/{repo}/labels/{name}
GitHub Delete Label
deleteLabel 6 params → 204
DELETE
/repos/{owner}/{repo}/milestones/{milestone_number}
GitHub Delete Milestone
deleteMilestone 6 params → 204404
DELETE
/repos/{owner}/{repo}/pages
GitHub Delete Github Enterprise Server Pages Site
deleteGithubEnterpriseServerPagesSite 5 params → 204404409422
DELETE
/repos/{owner}/{repo}/releases/assets/{asset_id}
GitHub Delete Release Asset
deleteReleaseAsset 6 params → 204
DELETE
/repos/{owner}/{repo}/releases/{release_id}
GitHub Delete Release
deleteRelease 6 params → 204
DELETE
/repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}
GitHub Delete Release Reaction
deleteReleaseReaction 7 params → 204
DELETE
/repos/{owner}/{repo}/tags/protection/{tag_protection_id}
GitHub Delete Tag Protection State for Repository
deleteTagProtectionStateForRepository 6 params → 204403404
DELETE
/scim/v2/Groups/{scim_group_id}
GitHub Delete Scim Group from an Enterprise
deleteScimGroupFromAnEnterprise 1 param → 204400401403404429500
DELETE
/scim/v2/Users/{scim_user_id}
GitHub Delete Scim User from an Enterprise
deleteScimUserFromAnEnterprise 1 param → 204400401403404429500
DELETE
/teams/{team_id}deprecated
GitHub Delete Team (legacy)
deleteTeamLegacy 1 param → 204404422
DELETE
/teams/{team_id}/discussions/{discussion_number}deprecated
GitHub Delete Discussion (legacy)
deleteDiscussionLegacy 2 params → 204
DELETE
/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}deprecated
GitHub Delete Discussion Comment (legacy)
deleteDiscussionCommentLegacy 3 params → 204

Schemas 12

The contract defines 12 schemas that model the data the API accepts and returns. The most detailed are nullable-simple-user (21 properties), pull-request-review (13 properties), scim-error_2 (6 properties), scim-error (6 properties). Each schema is shown below with its type and property counts.

validation-error
object
Validation Error
3 properties 2 required
basic-error
object
Basic Error
4 properties
actions-cache-list
object
Repository actions caches
2 properties 2 required
scim-error
object
Scim Error
6 properties
code-scanning-analysis-deletion
object
Successful deletion of a code scanning analysis
2 properties 2 required
nullable-simple-user
object
GitHub user.
21 properties 18 required
validation-error-simple
object
Validation Error Simple
3 properties 2 required
pull-request-review
object
Pull Request Reviews are reviews on pull requests.
13 properties 10 required
author-association
string
How the author is associated with the repository.
file-commit
object
File Commit
2 properties 2 required
validation-error_2
object
Validation Error
3 properties 2 required
scim-error_2
object
Scim Error
6 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

github-delete-api-openapi.yml Raw ↑

Other APIs GitHub publishes across the network.

GitHub Events API
GitHub Feeds API
GitHub Gists API
GitHub Issues API
GitHub Licenses API
GitHub Markdown API
GitHub Meta API
GitHub Notifications API
GitHub Octocat API
GitHub Projects API
GitHub Repos API
GitHub Search API
Where this information came from

This is an independent, third-party profile of GitHub Delete API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.