Script to Remove Core Data's SQLite Database File During Development Cycles
During development of applications that uses Core Data on the iPhone, I find myself often wanting to delete the SQLite database file. This is especially common in the earlier stage where the schema isn’t finalized yet. Here’s a script that helps with that, building on Craig Hockenberry’s Open sesame script.
See http://gist.github.com/278281.
Save the script as clearcoredata, make it executable. To delete the SQLite database file, run: clearcoredata <app name>.