diff --git a/bin/utils b/bin/utils
index a57d54e747c54d25977af5dd969f77fec764665f..eff6bf0a9135fe1f50c4114d5b6c899e0921e368 100755
--- a/bin/utils
+++ b/bin/utils
@@ -68,7 +68,7 @@ deep-rm() {
   # subshell to avoid surprising caller with shopts.
   (
     shopt -s dotglob
-    rm -rf "$1"/!(tmp|.|..)
+    rm -rf "$1"/!(.curlrc|.netrc|tmp|.|..)
   )
 }