Instance Method

deleteAllSearchableItemsWithCompletionHandler:

Deletes all searchable items from the index.

Declaration

- (void)deleteAllSearchableItemsWithCompletionHandler:(void (^)(NSError *error))completionHandler;

Parameters

completionHandler

The block that’s called when the request has been journaled by the index (“journaled” means that the index makes a note that it has to perform this operation). Note that the request may not have completed.

The block receives the following parameter:

error

If an error occurred, this parameter holds an error object that explains the error. Otherwise, the value of this parameter is nil.

See Also

Managing Items in an Index

- deleteSearchableItemsWithDomainIdentifiers:completionHandler:

Removes from the index all searchable items associated with the specified domain.

- deleteSearchableItemsWithIdentifiers:completionHandler:

Removes from the index all items with the specified identifiers.

- indexSearchableItems:completionHandler:

Adds or updates items in the index.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software