deleteConsent method

Future<ClientResponse<void, Errors>> deleteConsent(
  1. String consentId
)

Deletes the consent for the given Id.

@param {String} consentId The Id of the consent to delete. @returns {Promise<ClientResponse

Implementation

Future<ClientResponse<void, Errors>> deleteConsent(String consentId) {
  return _start<void, Errors>()
      .withUri('/api/consent')
      .withUriSegment(consentId)
      .withMethod('DELETE')
      .go();
}