Jira development panel links to removed projects/commits (missing/non-existing references)

How to remove obsolete links from JIRA?

  1. Commit message (in feature branch) contains the wrong JIRA task.
  2. This commit is linked to JIRA and displayed in the development panel.
  3. The wrong JIRA number is fixed in the commit message using git rebase (new commit hash).
  4. The original commit no longer exists in the repository.
  5. References to non-existing commits remain in JIRA and return 404.

Non-existing references remain in JIRA even if the project is deleted.

Is there a way to remove missing/non-existing references from JIRA?