<!--
{
  "availability" : [
    "iOS: 27.3.0 -",
    "iPadOS: 27.3.0 -",
    "macCatalyst: -"
  ],
  "documentType" : "symbol",
  "framework" : "IdentityDocumentServicesUI",
  "identifier" : "/documentation/IdentityDocumentServicesUI/ISO18013MobileDocumentRawRequestContext/cancel()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "IdentityDocumentServicesUI"
    ],
    "preciseIdentifier" : "s:26IdentityDocumentServicesUI014ISO18013MobileB17RawRequestContextV6cancelyyF"
  },
  "title" : "cancel()"
}
-->

# cancel()

Cancels the current request from the relying party.

```
func cancel()
```

## Discussion

Call this method when the person using your app declines a request. The system doesn’t release any data to the relying party.

---

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)