diff --git a/gitlab/channel_support.py b/gitlab/channel_support.py
index 7e32924e7bc60982b30b4798cb59e3fa3727183d..e69ec211c8aef6305a60983d536a0c7009c796a7 100644
--- a/gitlab/channel_support.py
+++ b/gitlab/channel_support.py
@@ -18,6 +18,7 @@ def main(channel_url, name, version, py_ver, get_urls=False):
             if match and match.group() == 'py{}'.format(py_ver):
                 build_number = max(build_number, dist.build_number + 1)
                 urls.append(index[dist].url)
+    urls = [url.replace(channel_url, '') for url in urls]
     return build_number, urls
 
 
diff --git a/gitlab/deploy.sh b/gitlab/deploy.sh
index 90f340dcaf76f014f9ce8bdb280cb7b125f6942e..a143eafefbfb55a602b8f7bb6fa97e852c65c8b1 100755
--- a/gitlab/deploy.sh
+++ b/gitlab/deploy.sh
@@ -24,7 +24,7 @@ done
 if [ -z "${CI_COMMIT_TAG}" ]; then #beta
     for urls in "_ci/*/*/build_number.txt"; do
         for url in `tail -n +2 $urls`; do
-            dav_delete ${url/$DOCSERVER/}
+            dav_delete ${url}
         done
     done
 fi