diff --git a/src/tests/recover-test1.c b/src/tests/recover-test1.c
index a9a119866328b3abc99c5a8c6b5353532b7b19d2..c7020338d9451f950b1848f7aa1e2c2d644a8c9b 100644
--- a/src/tests/recover-test1.c
+++ b/src/tests/recover-test1.c
@@ -46,7 +46,7 @@ do_x1_shutdown (void) {
 static void
 do_x1_recover (BOOL UU(did_commit)) {
     int r;
-    r=system("rm " ENVDIR "/foo_db*"); CKERR(r);
+    r=system("rm " ENVDIR "/*.tokudb"); CKERR(r);
 
     r = db_env_create(&env, 0);                                                             CKERR(r);
     r = env->open(env, ENVDIR, envflags|DB_RECOVER, S_IRWXU+S_IRWXG+S_IRWXO);               CKERR(r);
diff --git a/src/tests/recover-test2.c b/src/tests/recover-test2.c
index 85920506bd90edc655c782cbf1663900b90aa009..93fdb60f4ceb1840556f6b19cba74aa209e36795 100644
--- a/src/tests/recover-test2.c
+++ b/src/tests/recover-test2.c
@@ -51,7 +51,7 @@ do_x1_shutdown (void) {
 static void
 do_x1_recover (BOOL UU(did_commit)) {
     int r;
-    r=system("rm " ENVDIR "/foo_db*"); CKERR(r);
+    r=system("rm " ENVDIR "/*.tokudb"); CKERR(r);
 
     r=db_env_create(&env, 0);                                                  assert(r==0);
     env->set_errfile(env, stderr);
diff --git a/src/tests/recover-test3.c b/src/tests/recover-test3.c
index e338393a6bc2dda54e18104e459a40b7aa0b57b9..38843abb55b9edc791c4a7b70f40768c1a2037ee 100644
--- a/src/tests/recover-test3.c
+++ b/src/tests/recover-test3.c
@@ -55,7 +55,7 @@ do_x1_shutdown (void) {
 static void
 do_x1_recover (BOOL UU(did_commit)) {
     int r;
-    r=system("rm " ENVDIR "/foo_db*"); CKERR(r);
+    r=system("rm " ENVDIR "/*.tokudb"); CKERR(r);
 
     r=db_env_create(&env, 0);                                                  assert(r==0);
     env->set_errfile(env, stderr);