diff --git a/bash_array_jobs/clean_env b/bash_array_jobs/clean_env
index c48bbc461ee5c553f122f2d4b822f17cda1cf3f1..eb25adf3eeee9c43000c2622e3d784066a825db5 100755
--- a/bash_array_jobs/clean_env
+++ b/bash_array_jobs/clean_env
@@ -6,7 +6,7 @@ import shutil
 def rm_test_dir():
 	cwd = os.getcwd()
 	for filename in os.listdir(cwd):
-		if not (filename.endswith("_env") or filename.endswith("_script") or filename.endswith(".job")):
+		if not (filename.endswith("_env") or filename.endswith("_script") or filename.endswith(".job") or filename.endswith(".md")):
 			if os.path.isfile(filename):
 				os.remove(filename)
 			else: