Contents

deleteSubscription#

Delete all subscription tokens of one token family from the wallet.

Request:

The request arguments must be a DeleteSubscriptionRequest object.

Response:

On success, the result is an empty object.

Side effects:

Deletes all subscription tokens of the token family from the wallet database. If any token of the family is still in use by a transaction, nothing is deleted.

Expected errors:

The caller can handle the following errors inline: WALLET_TOKENS_IN_USE.

interface DeleteSubscriptionRequest {
  // Hash of token family info.
  tokenFamilyHash: string;
}