You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to remove the duplicate issue #48388 (created by mistake), the GitHub API does not provide a "delete issue" operation. The only available action is to close the issue with state: closed and state_reason: duplicate (which requires duplicate_of to reference the canonical issue).
This is a GitHub platform limitation — issues cannot be permanently deleted via the REST API or GraphQL API. They can only be closed, and closing with state_reason: duplicate is the recommended way to handle duplicates.
When attempting to remove the duplicate issue #48388 (created by mistake), the GitHub API does not provide a "delete issue" operation. The only available action is to close the issue with
state: closedandstate_reason: duplicate(which requiresduplicate_ofto reference the canonical issue).This is a GitHub platform limitation — issues cannot be permanently deleted via the REST API or GraphQL API. They can only be closed, and closing with
state_reason: duplicateis the recommended way to handle duplicates.Workaround used:
state: closed,state_reason: duplicate,duplicate_of: 48387Reference: GitHub REST API docs for "Update an issue" — no DELETE endpoint exists for issues.