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

# delete

Deletes one or more records.

## Declaration

```data
CloudKit.RecordsBatchBuilder delete(
	CloudKit.Record|CloudKit.Record[] records
);
```

## Parameters

- `records`: A doc://com.apple.cloudkitjs/documentation/CloudKitJS/CloudKit.Record dictionary representing the record to delete, if you are deleting a single record. If you are deleting multiple records, this parameter is an array of doc://com.apple.cloudkitjs/documentation/CloudKitJS/CloudKit.Record dictionaries. The doc://com.apple.cloudkitjs/documentation/CloudKitJS/CloudKit.Record dictionaries need to contain the recordChangeTag key.

## Return Value

Return Value The object that received this method call.

## See Also

### Deleting Records

- [forceDelete](cloudkitjs/cloudkit.recordsbatchbuilder/forcedelete.md)
