<!--
{
  "availability" : [
    "iOS: 3.0.0 -",
    "iPadOS: 3.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.4.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreData",
  "identifier" : "/documentation/CoreData/NSPersistentStoreCoordinator/remove(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Core Data"
    ],
    "preciseIdentifier" : "c:objc(cs)NSPersistentStoreCoordinator(im)removePersistentStore:error:"
  },
  "title" : "remove(_:)"
}
-->

# remove(_:)

Removes the specified persistent store from the coordinator.

```
func remove(_ store: NSPersistentStore) throws
```

## Parameters

`store`

A persistent store.

## See Also

[`migratePersistentStore(_:to:options:withType:)`](/documentation/CoreData/NSPersistentStoreCoordinator/migratePersistentStore(_:to:options:withType:))

Changes the location and, if necessary, the store type of the specified persistent store.

[`addPersistentStore(ofType:configurationName:at:options:)`](/documentation/CoreData/NSPersistentStoreCoordinator/addPersistentStore(ofType:configurationName:at:options:))

Adds a specific type of persistent store at the provided location.



---

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)