cmd/wallet-js-sdk/src/credential/credential-manager.js
/**
   * Removes credential and its metadata from wallet.
   *
   *  Doesn't delete respective credential manifest since one credential manifest can be referred by many other credentials too.
   *
   *  @param {string} auth - authorization token for wallet operations.
   *  @param {string} contentID - ID of the credential to be removed from wallet content store.
   *
   *  @returns {Promise<Object>} - empty promise or an error if operation fails.
   */
Removes credential and its metadata from wallet.
Doesn't delete respective credential manifest since one credential manifest can be referred by many other credentials too.

@param {string} auth - authorization token for wallet operations.
@param {string} contentID - ID of the credential to be removed from wallet content store.

@returns {Promise} - empty promise or an error if operation fails.
Removes credential and its metadata from wallet . Doesn ' t delete respective credential manifest since one credential manifest can be referred by many other credentials too . @param { string } auth - authorization token for wallet operations . @param { string } contentID - ID of the credential to be removed from wallet content store . @returns { Promise } - empty promise or an error if operation fails .
async remove(auth, contentID) {
    return await Promise.all([
      this.wallet.remove({
        auth,
        contentType: contentTypes.CREDENTIAL,
        contentID,
      }),
      this.wallet.remove({
        auth,
        contentType: contentTypes.METADATA,
        contentID,
      }),
    ]);
  }
async remove ( auth , contentID ) { return await Promise . all ( [ this . wallet . remove ( { auth , contentType : contentTypes . CREDENTIAL , contentID , } ) , this . wallet . remove ( { auth , contentType : contentTypes . METADATA , contentID , } ) , ] ) ; }
Removes credential and its metadata from wallet.
Removes credential and its metadata from wallet .