Skip to content

Cannot delete GitHub issues via API — only close with state_reason #48390

Description

@DiazOlveraCo

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.

Workaround used:

  1. Closed Session incorrectly conflated FSB troubleshooting with development-agent fixing #48388 with state: closed, state_reason: duplicate, duplicate_of: 48387
  2. The issue remains in the repository but is marked as a duplicate and closed

Reference: GitHub REST API docs for "Update an issue" — no DELETE endpoint exists for issues.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions