deleteRecords
Deletes one or more records.
Declaration
Promise< CloudKit.RecordsResponse, CloudKit.CKError > deleteRecords(
CloudKit.Record|CloudKit.Record[]|String|String[] records,
optional Object options
);Parameters
- records:
Possible values are:
Type
Description
A dictionary or the record name of the record to delete.
CloudKit.Record[]An array of records to delete.
StringThe name of a record to delete.
String[]An array of names of records to delete.
- options:
A dictionary containing a single
zoneIDkey that identifies the zone (Cloudkit.zoneid) in the database where the record resides. If theoptionsparameter is omitted, the default zone is used.
Return Value
A Promise object that resolves to a CloudKit.RecordsResponse object if the operation succeeds; otherwise, a CKError object.