deleteComponent method

Future<void> deleteComponent({
  1. required String id,
  2. String? moveIssuesTo,
})

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,
    },
  );
}