Instance Method

deleteSubscriptions

Deletes one or more subscriptions.

Declaration

Promise<CloudKit.SubscriptionsResponse, CloudKit.CKError> deleteSubscriptions(CloudKit.Subscription|CloudKit.Subscription[]|String|String[] subscriptions);

Parameters

subscriptions

Possible values are:

Type

Description

CloudKit.Subscription

A subscription in the database to delete.

CloudKit.Subscription[]

An array of subscriptions to delete.

String

The ID of a subscription to delete.

String[]

An array of IDs of the subscriptions to delete.

Return Value

A Promise object that resolves to a CloudKit.SubscriptionsResponse object, or rejects to a CloudKit.CKError object.

Discussion

See Also

Subscribing to Changes

saveSubscriptions

Saves one or more subscriptions to record changes.

fetchSubscriptions

Fetches one or more subscriptions.

fetchAllSubscriptions

Fetches all subscriptions in the schema.