Too many appium-app.apk in /tmp directory that eventually used 100% of space on filesystem

Hi,

I am a newbie of Appium. Please tell me how does Appium clean up the temporary APK files, it seems keep generating new folders that contained APK file until it ran out of space.

Is the cleanup configurable or I am using appium switches wrong. Pardon my formatting since this is my first post.

Version: 1.3.4
Option: appium --session-override --strict-caps --selendroid-port 8081 --nodeconfig $config --log $log &
Capabilities:
android.json
{
“capabilities”:
[
{
“automationName”: “Appium”,
“maxInstances”: 1,
“platformName”: “Android”,
“platformVersion”: “4.4”,
“version”: “”
},
{
“automationName”: “Selendroid”,
“maxInstances”: 1,
“platformName”: “Android”,
“platformVersion”: “4.4”,
“version”: “”
}
],
“configuration”:
{
“cleanUpCycle”: 2000,
“timeout”: 30000,
“proxy”: “org.openqa.grid.selenium.proxy.DefaultRemoteProxy”,
“url”: “http://testslave10.blah.com:4723/wd/hub”,
“maxSession”: 1,
“port”: 4723,
“host”: “testslave10.blah.com”,
“role”: “node”,
“register”: true,
“registerCycle”: 5000,
“hubPort”: 4444,
“hubHost”: “sselenium02.blah.com
}
}

115418-5676-19twpek/ 115418-5676-1ighx8i/ 115418-5676-1x3arys/ 115418-5676-c01omk/ 115418-5676-fd6ove/
115418-7031-1ksddt1/ 115418-7031-1nujis0/ 115418-7031-93a58d/ 1431128691242.tmp
115418-5676-1etr8cr/ 115418-5676-1rss2sx/ 115418-5676-1ycrffy/ 115418-5676-fbzeha/ 115418-7031-14zi9o2/ 115418-7031-1nnikhw/ 115418-7031-8dp4z6/ 115418-7031-upx7re/
[jenkins@testslave10 tmp]$ ls -al /tmp/115418-*
/tmp/115418-5676-19twpek:
total 19424
drwxr-xr-x 2 jenkins jenkins 4096 May 18 11:17 .
drwxrwxrwt 23 root root 135168 May 18 14:11 …
-rw-r–r-- 1 jenkins jenkins 19721910 May 18 11:17 appium-app.apk

   capabilities.setCapability(MobileCapabilityType.APP, ARTIFACTORY_URL);

Since there is no reply, I temporary made a jenkins post build shell that cleaned those temp folders

This has been answered:

So Appium doesn’t do it natively.