deleteComponent method
Deletes a component.
This operation can be accessed anonymously.
Permissions required: Administer projects project permission for the project containing the component or Administer Jira global permission.
Implementation
Future<void> deleteComponent(
{required String id, String? moveIssuesTo}) async {
await _client.send(
'delete',
'rest/api/3/component/{id}',
pathParameters: {
'id': id,
},
queryParameters: {
if (moveIssuesTo != null) 'moveIssuesTo': moveIssuesTo,
},
);
}