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.
Save the script as clearcoredata, make it executable. To delete the SQLite database file, run: clearcoredata <app name>.
Like this post? Follow me @hboon on Twitter.