---
title: "patientStore(_:didDeletePatients:)"
framework: CareKit
role: symbol
role_heading: Instance Method
platforms: [iOS 13.0+, Mac Catalyst 13.0+, watchOS 7.0+]
path: "carekit/ocksynchronizedstoremanager/patientstore(_:diddeletepatients:)"
---

# patientStore(_:didDeletePatients:)

Called each time patients are deleted from the store.

## Declaration

```swift
func patientStore(_ store: OCKAnyReadOnlyPatientStore, didDeletePatients patients: [OCKAnyPatient])
```

## Parameters

- `store`: The store which was modified.
- `patients`: The patients that were deleted.

## See Also

### To remove? Handling Data Deletion

- [carePlanStore(_:didDeleteCarePlans:)](carekit/ocksynchronizedstoremanager/careplanstore(_:diddeletecareplans:).md)
- [contactStore(_:didDeleteContacts:)](carekit/ocksynchronizedstoremanager/contactstore(_:diddeletecontacts:).md)
- [outcomeStore(_:didDeleteOutcomes:)](carekit/ocksynchronizedstoremanager/outcomestore(_:diddeleteoutcomes:).md)
- [taskStore(_:didDeleteTasks:)](carekit/ocksynchronizedstoremanager/taskstore(_:diddeletetasks:).md)
