---
title: fetchRequest
framework: coredata
role: symbol
role_heading: Instance Property
path: coredata/nsbatchdeleterequest/fetchrequest
---

# fetchRequest

The fetch request that identifies the managed objects to delete.

## Declaration

```swift
@NSCopying var fetchRequest: NSFetchRequest<any NSFetchRequestResult> { get }
```

## Discussion

Discussion This property contains the fetch request that identifies the managed objects to delete. If you initialize NSBatchDeleteRequest with an array of NSManagedObjectID, Core Data automatically generates a fetch request with a predicate that matches the identifiers in that array.
