---
title: "init(objectIDs:)"
framework: coredata
role: symbol
role_heading: Initializer
path: "coredata/nsbatchdeleterequest/init(objectids:)"
---

# init(objectIDs:)

Creates a request that deletes the managed objects with the specified identifiers.

## Declaration

```swift
convenience init(objectIDs objects: [NSManagedObjectID])
```

## Parameters

- `objects`: The array that contains the identifiers of the managed objects to delete.

## Discussion

Discussion important: The identifiers your provide must be from managed objects of the same entity type; mixing entity types results in an error when you execute the request.

## See Also

### Creating a Request

- [init(fetchRequest:)](coredata/nsbatchdeleterequest/init(fetchrequest:).md)
