<!--
{
  "availability" : [
    "iOS: 5.0.0 - 10.0.0",
    "iPadOS: 5.0.0 - 10.0.0",
    "macCatalyst: 13.1.0 - 13.1.0",
    "macOS: 10.7.0 - 10.12.0",
    "visionOS: 1.0.0 - 1.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "CoreData",
  "identifier" : "/documentation/CoreData/NSPersistentStoreCoordinator/removeUbiquitousContentAndPersistentStore(at:options:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Core Data"
    ],
    "preciseIdentifier" : "c:objc(cs)NSPersistentStoreCoordinator(cm)removeUbiquitousContentAndPersistentStoreAtURL:options:error:"
  },
  "title" : "removeUbiquitousContentAndPersistentStore(at:options:)"
}
-->

# removeUbiquitousContentAndPersistentStore(at:options:)

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

```
class func removeUbiquitousContentAndPersistentStore(at storeURL: URL, options: [AnyHashable : Any]? = nil) throws
```

## Parameters

`storeURL`

The URL of the store to delete.

`options`

A dictionary containing the options normally passed to [`addPersistentStore(ofType:configurationName:at:options:)`](/documentation/CoreData/NSPersistentStoreCoordinator/addPersistentStore(ofType:configurationName:at:options:)).

## Discussion

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

---

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)