---
title: "editVoiceShortcutViewController(_:didDeleteVoiceShortcutWithIdentifier:)"
framework: IntentsUI
role: symbol
role_heading: Instance Method
platforms: [iOS 12.0+, iPadOS 12.0+, Mac Catalyst 13.1+, macOS 12.0+, visionOS 1.0+]
path: "intentsui/inuieditvoiceshortcutviewcontrollerdelegate/editvoiceshortcutviewcontroller(_:diddeletevoiceshortcutwithidentifier:)"
---

# editVoiceShortcutViewController(_:didDeleteVoiceShortcutWithIdentifier:)

Tells the delegate the user deleted the shortcut.

## Declaration

```swift
func editVoiceShortcutViewController(_ controller: INUIEditVoiceShortcutViewController, didDeleteVoiceShortcutWithIdentifier deletedVoiceShortcutIdentifier: UUID)
```

## Parameters

- `controller`: The view controller calling this method.
- `deletedVoiceShortcutIdentifier`: The identifier of the shortcut that the user deleted.

## Discussion

Discussion After the user deletes a shortcut, the shortcut is no longer available to Siri. Your app should reflect this change by displaying an INUIAddVoiceShortcutButton in the view for the action. The button lets the user know the action doesn’t have a shortcut, and provides the option to add one.

## See Also

### Handling Shortcut Changes

- [editVoiceShortcutViewController(_:didUpdate:error:)](intentsui/inuieditvoiceshortcutviewcontrollerdelegate/editvoiceshortcutviewcontroller(_:didupdate:error:).md)
