Skip to content

@mbanq/core-sdk-js v0.50.0


@mbanq/core-sdk-js / commands / DeleteSubscription

Function: DeleteSubscription()

DeleteSubscription(subscriptionId): Command<{ subscriptionId: number; }, { id: string; resourceId: number; }>

Defined in: src/commands/rest/notification.ts:145

Deletes a subscription.

Parameters

subscriptionId

number

The ID of the subscription to delete

Returns

Command<{ subscriptionId: number; }, { id: string; resourceId: number; }>

A Command that when executed returns the deleted subscription's id and resourceId

Example

typescript
const deleteCmd = DeleteSubscription(123);
const result = await deleteCmd.execute(config);
console.log(result.id, result.resourceId);

Released under the MIT License.