code: func (s *IssueService) Delete(issueID string) (*Response, error) {
  	apiEndpoint := fmt.Sprintf("rest/api/2/issue/%s", issueID)
  
  	// to enable deletion of subtasks; without this, the request will fail if the issue has subtasks
  	deletePayload := make(map[string]interface{})
  	deletePayload["deleteSubtasks"] = "true"
  	content, _ := json.Marshal(deletePayload)
  
  	req, err := s.client.NewRequest("DELETE", apiEndpoint, content)
  	if err != nil {
  		return nil, err
  	}
  
  	resp, err := s.client.Do(req, nil)
  	return resp, err
  }
docs: // Delete will delete a specified issue.