Type Method

removeUbiquitousContentAndPersistentStoreAtURL:options:error:

Deletes all ubiquitous content for all peers for the persistent store at a given URL and also delete the local store file.

Declaration

+ (BOOL)removeUbiquitousContentAndPersistentStoreAtURL:(NSURL *)storeURL options:(NSDictionary *)options error:(NSError * _Nullable *)error;

Parameters

storeURL

The URL of the store to delete.

options

A dictionary containing the options normally passed to addPersistentStoreWithType:configuration:URL:options:error:.

error

If the operation fails, upon return contains an NSError object that describes the problem.

Return Value

YES if the store was deleted, otherwise NO.

Discussion

Errors may be returned as a result of file I/O, iCloud network or iCloud account issues.

See Also

Deprecated

NSPersistentStoreDidImportUbiquitousContentChangesNotification

Posted after records are imported from the ubiquitous content store.

Deprecated
NSPersistentStoreUbiquitousTransitionType

These constants are used as the value corresponding to the NSPersistentStoreUbiquitousTransitionTypeKey in the user info dictionary of NSPersistentStoreCoordinatorStoresWillChangeNotification and NSPersistentStoreCoordinatorStoresDidChangeNotification notifications to identify the type of event leading to a change.

Deprecated
+ setMetadata:forPersistentStoreOfType:URL:error:

Sets the metadata for a given store.

Deprecated
+ metadataForPersistentStoreOfType:URL:error:

Returns a dictionary containing the metadata stored in the persistent store at a given URL.

Deprecated
- unlock

Relinquishes a previously acquired lock.

Deprecated
- lock

Attempts to acquire a lock.

Deprecated
- tryLock

Attempts to acquire a lock.

Deprecated