remove core and database file