deleteRemoteLinkById method

Future<void> deleteRemoteLinkById({
  1. required String remoteLinkId,
  2. int? updateSequenceNumber,
})

Delete the Remote Link data currently stored for the given ID.

Deletion is performed asynchronously. The getRemoteLinkById operation can be used to confirm that data has been deleted successfully (if needed).

Only Connect apps that define the jiraRemoteLinkInfoProvider module, and on-premise integrations, can access this resource. This resource requires the 'DELETE' scope for Connect apps.

Implementation

Future<void> deleteRemoteLinkById(
    {required String remoteLinkId, int? updateSequenceNumber}) async {
  await _client.send(
    'delete',
    'rest/remotelinks/1.0/remotelink/{remoteLinkId}',
    pathParameters: {
      'remoteLinkId': remoteLinkId,
    },
    queryParameters: {
      if (updateSequenceNumber != null)
        '_updateSequenceNumber': '$updateSequenceNumber',
    },
  );
}