---
title: finishDeferredLightweightMigration()
framework: coredata
role: symbol
role_heading: Instance Method
path: coredata/nspersistentstorecoordinator/finishdeferredlightweightmigration()
---

# finishDeferredLightweightMigration()

Executes all remaining tasks of a deferred lightweight migration.

## Declaration

```swift
func finishDeferredLightweightMigration() throws
```

## Discussion

Discussion note: Enable deferred lightweight migrations before using this method. For more information, see NSPersistentStoreDeferredLightweightMigrationOptionKey.

## See Also

### Deferring a store’s migrations

- [NSPersistentStoreDeferredLightweightMigrationOptionKey](coredata/nspersistentstoredeferredlightweightmigrationoptionkey.md)
- [finishDeferredLightweightMigrationTask()](coredata/nspersistentstorecoordinator/finishdeferredlightweightmigrationtask().md)
