views:

14

answers:

1

Let's say I saved data to disk like this:

[[NSUserDefaults standardUserDefaults] setObject:[NSKeyedArchiver archivedDataWithRootObject:theArray] forKey:@"savedArray"];

How can I erase that from disk?

+1  A: 

Try this.

[[NSUserDefaults standardUserDefaults] removeObjectForKey:@"savedArray"];
Hector204