diff --git a/airtest/core/android/minicap.py b/airtest/core/android/minicap.py
index <HASH>..<HASH> 100644
--- a/airtest/core/android/minicap.py
+++ b/airtest/core/android/minicap.py
@@ -94,7 +94,7 @@ class Minicap(object):
             None
 
         """
-        self.adb.raw_shell("rm /data/local/tmp/minicap*")
+        self.adb.raw_shell("rm -r /data/local/tmp/minicap*")
 
     def install(self):
         """
Delete the entire folder when deleting minicap

(cherry picked from commit 8fdeb<I>b<I>eca<I>d4b2a<I>a<I>e7ed<I>b)