diff --git a/gitlab/before_deploy.sh b/gitlab/before_deploy.sh
index ca6c3d69c19ef2841f7decf6bf4edbaa3804098b..5ca76267ec8b6671cb13fdeaf222d92fcbbad193 100755
--- a/gitlab/before_deploy.sh
+++ b/gitlab/before_deploy.sh
@@ -6,4 +6,5 @@ $(dirname ${0})/install.sh $(dirname ${0})
 
 source $(dirname ${0})/functions.sh
 
+run_cmd rm -f ${HOME}/.pypirc
 run_cmd $(dirname ${0})/before_test.sh