---
title: "initiateDeletionForOutcomeValue(atIndex:eventIndexPath:deletionCompletion:)"
framework: CareKit
role: symbol
role_heading: Instance Method
platforms: [iOS 13.0+, Mac Catalyst 13.0+, watchOS 7.0+]
path: "carekit/ocktaskcontrollerprotocol/initiatedeletionforoutcomevalue(atindex:eventindexpath:deletioncompletion:)-4hoy0"
---

# initiateDeletionForOutcomeValue(atIndex:eventIndexPath:deletionCompletion:)

Returns an alert controller with localized text, that confirms deleting an outcome.

## Declaration

```swift
func initiateDeletionForOutcomeValue(atIndex index: Int, eventIndexPath: IndexPath, deletionCompletion: ((Result<OCKAnyOutcome, Error>) -> Void)?) throws -> UIAlertController
```

## Parameters

- `index  `: The location in an array of outcome values.
- `eventIndexPath  `: The section and row of the event.
- `deletionCompletion  `: A completion handler that the function calls when the store deletes the outcome.

## See Also

### Handling Task Selection

- [appendOutcomeValue(withType:at:completion:)](carekit/ocktaskcontrollerprotocol/appendoutcomevalue(withtype:at:completion:)-3est6.md)
- [eventFor(indexPath:)](carekit/ocktaskcontrollerprotocol/eventfor(indexpath:)-6lqed.md)
- [makeOutcomeFor(event:withValues:)](carekit/ocktaskcontrollerprotocol/makeoutcomefor(event:withvalues:)-4sb0b.md)
- [setEvent(atIndexPath:isComplete:completion:)](carekit/ocktaskcontrollerprotocol/setevent(atindexpath:iscomplete:completion:)-11kln.md)
- [initiateDetailsViewController(forIndexPath:)](carekit/ocktaskcontrollerprotocol/initiatedetailsviewcontroller(forindexpath:)-5gptc.md)
