<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreData",
  "identifier" : "/documentation/CoreData/NSBatchDeleteRequest/init(objectIDs:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Core Data"
    ],
    "preciseIdentifier" : "c:objc(cs)NSBatchDeleteRequest(im)initWithObjectIDs:"
  },
  "title" : "init(objectIDs:)"
}
-->

# init(objectIDs:)

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

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

## Parameters

`objects`

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

## 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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)