deleteAll(completion:)
deleteAll(completion:)
deleteAll(completion:) Type Method of INInteraction Deletes all interactions that you donated previously.
class func deleteAll(completion: (@Sendable ((any Error)?) -> Void)? = nil)Parameters
completion
A block to execute with the results. Provide a block if you want to know whether the deletion action succeeded. The block has no return value and takes the following parameter. - term error: An error object indicating a problem occurred. On success, this parameter is nil. If there was an error, this parameter contains an error object describing what happened.
Discussion
Call this method to delete all of your app’s previously donated SiriKit interactions. If you provide a block in the completion parameter, the system executes your block asynchronously with the results.
Important: Typically, you only want to delete interactions that are no longer relevant. Use `
doc://com.apple.sirikit/documentation/Intents/INInteraction/delete(with:completion:)-2d1gs` to delete only interactions associated with a particular identifier.