I have an app where I am saving data but when the app is killed in the background I have to delete all the saved data.
I tried using this method:
- (void
I know, I'm super late to the party but, if you can live with data "sticking around" until the next app launch you can delete/clear data in application(_:didFinishLaunchingWithOptions).
application(_:didFinishLaunchingWithOptions)