Skip to content

removeProtectedDataFromSubscription

Method to remove a protected data from your subscription.

Usage

ts
const { 
txHash
} =
await
dataProtectorSharing
.
removeProtectedDataFromSubscription
({
protectedData
: '0x123abc...',
});

Pre-conditions

  • You must be the owner of the collection of which the protected data is currently part of.
  • There should be no active subscriptions to this collection.
  • The protected data should be part of your subscription.

Parameters

ts
import { type 
RemoveProtectedDataFromSubscriptionParams
} from '@iexec/dataprotector';

protectedData Required *

Type: AddressOrENS

Address of the protected data you'd like to remove from subscription.

ts
const { 
txHash
} =
await
dataProtectorSharing
.
removeProtectedDataFromSubscription
({
protectedData
: '0x123abc...',
});

Return value

ts
import { type 
SuccessWithTransactionHash
} from '@iexec/dataprotector';

See SuccessWithTransactionHash