diff --git a/src/freedombone-app-xmpp b/src/freedombone-app-xmpp
index af935c7739d3c444fac978c38d1471e8357d0b7b..2393843aecc50255b73e0aafb770bfc4e66632ac 100755
--- a/src/freedombone-app-xmpp
+++ b/src/freedombone-app-xmpp
@@ -206,6 +206,8 @@ function upgrade_xmpp_client {
         apt-get -y remove --purge profanity
     fi
 
+    rm -rf /tmp/*
+
     function_check set_repo_commit
     set_repo_commit $INSTALL_DIR/libmesode "libmesode commit" "$LIBMESODE_COMMIT" $LIBMESODE_REPO
     cd $INSTALL_DIR/libmesode
@@ -215,6 +217,8 @@ function upgrade_xmpp_client {
     make install
     cp /usr/local/lib/libmesode* /usr/lib
 
+    rm -rf /tmp/*
+
     function_check set_repo_commit
     set_repo_commit $INSTALL_DIR/profanity "profanity commit" "$PROFANITY_COMMIT" $PROFANITY_REPO
     cd $INSTALL_DIR/profanity