delete db and core file