consent.revoke

Method to revoke TrustCommander consent via JavaScript.

The Commanders Act onsite API stub has to be installed before using any of the onsite API functions.

cact('consent.revoke')

consent.revoke is called with no options and no callback function. It resets the consent, consent id and initiates a consen.onUpdate event with the updateEvent set to revoked that allows to perform cleanup tasks like removing cookie identifiers.