---
title: deleteRecords
framework: CloudKit JS
role: symbol
role_heading: Instance Method
platforms: [cloudkit js 1.0+]
path: cloudkitjs/cloudkit.database/deleterecords
---

# deleteRecords

Deletes one or more records.

## Declaration

```data
Promise<CloudKit.RecordsResponse, CloudKit.CKError> deleteRecords(
	CloudKit.Record|CloudKit.Record[]|String|String[] records,
	optional Object options
);
```

## Parameters

- `records`: Possible values are: | | | | |
- `options`: A dictionary containing a single zoneID key that identifies the zone (doc://com.apple.cloudkitjs/documentation/CloudKitJS/CloudKit.ZoneID) in the database where the record resides. If the options parameter is omitted, the default zone is used.

## Return Value

Return Value A Promise object that resolves to a CloudKit.RecordsResponse object if the operation succeeds; otherwise, a CKError object.

## See Also

### Accessing Records

- [saveRecords](cloudkitjs/cloudkit.database/saverecords.md)
- [fetchRecords](cloudkitjs/cloudkit.database/fetchrecords.md)
- [performQuery](cloudkitjs/cloudkit.database/performquery.md)
- [newRecordsBatch](cloudkitjs/cloudkit.database/newrecordsbatch.md)
