Don't delete an issue without a valid reason. A simple #shell script can delete an issue for you with all it's sub-tasks.
#UpdateIssue #JiraRESTAPI
Endpoint: DELETE /rest/api/3/issue/an-233
Code: https://github.com/sparxsys/jira-shell-scripts/blob/main/deleteIssue.sh
Topic