diff --git a/ci/build.yml b/ci/build.yml
index 8a87af78e50ae442900ea260eea9057d22f8df40..c8ec6c147fcdfbe7b1dd198df4b9e584f5f9eaa8 100644
--- a/ci/build.yml
+++ b/ci/build.yml
@@ -66,6 +66,14 @@ workflow:
     - kas shell $KAS_CONFIG:kas/dev/shared-cache.yml -c "bitbake virtual/bootloader -e" > build/env/bootloader.$PLATFORM.$YOCTO_SERIES.env
     - kas shell $KAS_CONFIG:kas/dev/shared-cache.yml -c "bitbake virtual/kernel -e" > build/env/kernel.$PLATFORM.$YOCTO_SERIES.env
 
+  #
+  # This script removes unused files to reduce the size of the artifacts.
+  # TODO: Keep files in release builds
+  #
+  strip:
+    - rm -rf build/tmp/deploy/ipk
+    - rm -rf build/tmp/deploy/licenses
+
 #
 # This is a template for the build job that runs the build for the requested
 # targets. The resulting artifacts expire after some time.
@@ -86,6 +94,7 @@ workflow:
     - !reference [.scripts, gitversion]
     - !reference [.scripts, cache]
     - !reference [.scripts, kas]
+    - !reference [.scripts, strip]
   artifacts:
     name: "$CI_PROJECT_NAME $CI_COMMIT_REF_NAME $PLATFORM $YOCTO_SERIES"
     paths: