<!--
{
  "availability" : [
    "iOS: 12.0.0 -",
    "iPadOS: 12.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 12.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SiriKit",
  "identifier" : "/documentation/IntentsUI/INUIEditVoiceShortcutViewControllerDelegate/editVoiceShortcutViewController(_:didDeleteVoiceShortcutWithIdentifier:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "IntentsUI"
    ],
    "preciseIdentifier" : "c:objc(pl)INUIEditVoiceShortcutViewControllerDelegate(im)editVoiceShortcutViewController:didDeleteVoiceShortcutWithIdentifier:"
  },
  "title" : "editVoiceShortcutViewController(_:didDeleteVoiceShortcutWithIdentifier:)"
}
-->

# editVoiceShortcutViewController(_:didDeleteVoiceShortcutWithIdentifier:)

Tells the delegate the user deleted the shortcut.

```
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

After the user deletes a shortcut, the shortcut is no longer available to Siri. Your app should reflect this change by displaying an [`INUIAddVoiceShortcutButton`](/documentation/IntentsUI/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.

---

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)