TTMSFNCWebPushDB.DeleteSubscription Method
Removes every subscription that belongs to the given user.
API unit family: TMS.TMSFNCWebPushDB
Declaring type: TTMSFNCWebPushDB
Inherited from: TTMSFNCCustomWebPushDB
Overloads
Overload 1
Removes every subscription that belongs to the given user.
procedure DeleteSubscription(AUserID: string); overload;
Remarks
Requires the user identifier field to be active. Each match is removed or emptied according to the delete mode and raises the before-delete and deleted events.
Parameters
| Name | Description |
|---|---|
AUserID |
User identifier whose subscriptions are removed. |
Overload 2
Removes every subscription that matches both the given user and browser identifiers.
procedure DeleteSubscription(AUserID, ABrowserID: string); overload;
Remarks
Requires both identifier fields to be active. Removal honors the delete mode and raises the before-delete and deleted events.
Parameters
| Name | Description |
|---|---|
AUserID |
User identifier to match. |
ABrowserID |
Browser or device identifier to match. |
Overload 3
Removes every subscription whose endpoint matches the supplied subscription.
procedure DeleteSubscription(ASubscription: TTMSFNCWebPushSubscription); overload;
Remarks
Removal honors the delete mode and raises the before-delete and deleted events.
Parameters
| Name | Description |
|---|---|
ASubscription |
Subscription whose endpoint identifies the records to remove. |